首先暴力打表就很容易发现有循环节,于是一开始的写法是直接暴力找循环节,结果一直WA,
原因是有的循环并不是从1,1开始的,详细有证明戳这里:http://acm.hdu.edu.cn/discuss/problem/post/reply.php?postid=19818&messageid=1&deep=0
于是借鉴了大神的思路,因为%7,故可用v[7][7]来记录 f(n) = (A * f...
分类:
其他好文 时间:
2014-09-21 11:56:10
阅读次数:
222
应用剑指offer 1 //判断二叉树是否平衡,后序遍历 2 bool isBalanced(treeNode* root,int& deep){ 3 if(root==NULL){ 4 deep=0; 5 return true; 6 } 7 ...
分类:
其他好文 时间:
2014-09-20 09:57:07
阅读次数:
162
Sparse CodingSparse coding is a class of unsupervised methods for learning sets of over-complete bases to represent data efficiently. —— 过完备的基,无监督 The...
分类:
其他好文 时间:
2014-09-19 18:57:05
阅读次数:
272
目前caffe不是很完善,输入的图片数据需要在prototxt指定路径。但是我们往往有这么一个需求:训练后得到一个模型文件,我们想拿这个模型文件来对一张图片抽取特征或者预测分类等。如果非得在prototxx指定路径,就很不方便。因此,这样的工具才是我们需要的:给一个可执行文件通过命令行来传递图片路径,然后caffe读入图片数据,进行一次正向传播。
因此我做了这么一个工具,用来抽取任意一张图片的特征。...
分类:
其他好文 时间:
2014-09-19 17:38:25
阅读次数:
333
Introduction to Deep Learning AlgorithmsSee the following article for a recent survey of deep learning:Yoshua Bengio, Learning Deep Architectures for ...
分类:
其他好文 时间:
2014-09-19 09:56:55
阅读次数:
240
聚类算法在数据挖掘里面被称之为无监督学习(unsupervised learning),这是与监督学习(supervised learning)相对的。在它们两者之间还一种叫做半监督学习(semi-supervised learning)聚类算法的一般过程分为:1. 读入需预测样本2. 初始化聚类算...
分类:
其他好文 时间:
2014-09-18 20:18:04
阅读次数:
381
Object copyAnobject copyis an action in computing where a data object has itsattributescopied to another object of the same data type. Anobjectis a co...
分类:
其他好文 时间:
2014-09-18 06:27:33
阅读次数:
164
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ...
分类:
其他好文 时间:
2014-09-18 04:21:33
阅读次数:
228
OverviewIn the previous sections, you constructed a 3-layer neural network comprising an input, hidden and output layer. While fairly effective for MN...
分类:
Web程序 时间:
2014-09-17 18:26:32
阅读次数:
289
Very Deep Convolutional Networks for Large-Scale Image RecognitionKaren Simonyan,Andrew ZissermanIn this work we investigate the effect of the convolu...
分类:
Web程序 时间:
2014-09-17 15:07:12
阅读次数:
297