Problem DescriptionIn ann?mmaze, the right-bottom corner is the exit (position(n,m)is the exit). In every position of this maze, there is either a0or ...
分类:
其他好文 时间:
2015-08-01 15:40:13
阅读次数:
180
应朋友之请写了一份python实现单隐层BPAnnmodel的code,好久没写博客,就顺便发上来。这篇代码比较干净利落,比较纯粹的描述了Ann的基本原理,初学机器学习的同学可以参考。模型中几个比较重要的参数:1.学习率学习率是影响模型收敛的重要因素,一般来说要根据具体场景灵活调整..
分类:
编程语言 时间:
2015-07-28 14:49:17
阅读次数:
159
Vasya has a very beautiful country garden that can be represented as ann?×?mrectangular field divided inton·msquares. One beautiful day Vasya remember...
分类:
其他好文 时间:
2015-07-20 16:07:30
阅读次数:
171
题意是要求出一个串的第k大的半回文子串
半回文串的定义是:若一个串其实位置为1,那么当所有奇数位i,且i
那么这个串就是半回文串。
作法就是,把这个串的所有半回文子串建成一个字典树,然后查第k大就好了
#include
#include
#include
#include
#include
#include
#include
#include
#include
#i...
分类:
其他好文 时间:
2015-07-19 10:09:46
阅读次数:
125
题目:A Ducci sequence is a sequence ofn-tuples of integers. Given ann-tuple of integers(a1,a2,...,an), the nextn-tuple in the sequence is formed by taki...
分类:
其他好文 时间:
2015-07-17 22:34:29
阅读次数:
226
DescriptionA Ducci sequence is a sequence ofn-tuples of integers. Given ann-tuple of integers(a1,a2,...,an), the nextn-tuple in the sequence is formed...
分类:
其他好文 时间:
2015-07-17 15:40:07
阅读次数:
125
题目链接
题意:
若一个字符串是半回文串,则满足第一位和最后一位相等, 第三位和倒数第三位相等,如此类推。
给定一个字符串s,输出s的所有子串中的半回文串字典序第k大的 字符串。
good[i][j] 表示 s(i,j) 是半回文串。
把这些回文串插到字典树里 在字典树上找第k个叶子节点。
插入时:插入以i点开头的所有半回文串。
#include
#include ...
分类:
其他好文 时间:
2015-07-17 00:34:29
阅读次数:
169
A Ducci sequence is a sequence ofn-tuples of integers. Given ann-tuple of integers(a1,a2,...,an), the nextn-tuple in the sequence is formed by taking ...
分类:
其他好文 时间:
2015-07-16 23:54:10
阅读次数:
270
原题贴上A Ducci sequence is a sequence ofn-tuples of integers. Given ann-tuple of integers(a1,a2,...,an), the nextn-tuple in the sequence is formed by tak...
分类:
其他好文 时间:
2015-07-15 11:01:21
阅读次数:
157
Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc...
分类:
其他好文 时间:
2015-07-12 16:58:46
阅读次数:
142