上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

2013年10月5日

摘要: 生成函数 阅读全文
posted @ 2013-10-05 11:55 苯苯吹雪 阅读(455) 评论(0) 推荐(0) 编辑

2013年9月20日

摘要: 最长回文串,动态规划,KMP,最长公共连续子串,后缀树,线性时间(两种算法) 阅读全文
posted @ 2013-09-20 20:42 苯苯吹雪 阅读(1288) 评论(0) 推荐(0) 编辑
摘要: LCS,子序列连续与否,暴力,动态规划,KMP,后缀数组,后缀树,线性时间 阅读全文
posted @ 2013-09-20 20:11 苯苯吹雪 阅读(8213) 评论(0) 推荐(5) 编辑

2013年9月14日

摘要: Catalan数——卡特兰数 阅读全文
posted @ 2013-09-14 12:40 苯苯吹雪 阅读(251) 评论(0) 推荐(0) 编辑

2013年7月17日

摘要: 注:基础知识见下方 下面是关于P==NP ??? 一些讨论,挺好玩的。 1. 首先强调一下数学上还没有证明这个问题!但是我们看看其他角度来看这个问题。 其次,心理上来说,要是可以证明P==NP那么早就有人证明了,毕竟过了这么多年了。 哲学上来说。我们学数学这么多年了,有个现象,往往去证明一个正确的结论比去证明一个不确定的命题来的简单。那么如果P==NP,the finding a proof is as easy as our homework. 权当听听就好了。 2. 一个有趣的单词PET 什么是PET呢,在当前我们不知道P跟NP的关系的时候,PET==pos... 阅读全文
posted @ 2013-07-17 22:13 苯苯吹雪 阅读(969) 评论(0) 推荐(0) 编辑

2013年6月20日

摘要: 转自:http://hoolihan.net/blog-tim/2009/02/17/static-vs-dynamic-scope/// start pseudo-codevar y = "global";function print-y() { print(y);}function test-scope() { var y = "local"; print-y();}test-scope(); // statically scoped languages print "global" // dynamically language 阅读全文
posted @ 2013-06-20 01:03 苯苯吹雪 阅读(1205) 评论(0) 推荐(0) 编辑
摘要: 转自:http://stackoverflow.com/questions/8848402/whats-the-difference-between-call-by-reference-and-copy-restoreMain code:#include <stdio.h> int a; int main() { a = 3; f( &a, 4); printf("&#37;d\n", a); return 0; }Call by Value:f(int x, int &y){ // x will be 3 as passed argum 阅读全文
posted @ 2013-06-20 01:02 苯苯吹雪 阅读(650) 评论(0) 推荐(0) 编辑

2013年4月19日

摘要: 筛法求素数及其优化 阅读全文
posted @ 2013-04-19 22:18 苯苯吹雪 阅读(348) 评论(0) 推荐(0) 编辑
摘要: ostringstream、istringstream、stringstream 阅读全文
posted @ 2013-04-19 17:51 苯苯吹雪 阅读(371) 评论(0) 推荐(0) 编辑

2013年4月15日

摘要: C++多态性,虚函数的调用原理 阅读全文
posted @ 2013-04-15 23:42 苯苯吹雪 阅读(327) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

导航