随笔分类 - 数据结构
线段树、平衡树(Splay , treap)、可持久化数据结构、块状链表(莫队算法)、树链剖分算法
摘要:题目网址:http://acm.hdu.edu.cn/showproblem.php?pid=4325 Description As is known to all, the blooming time and duration varies between different kinds of f
阅读全文
摘要:题目网址:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=110773#problem/A Description In the modern time, Search engine came into the life of everyb
阅读全文
摘要:AC自动机 转载自:小白 还可参考:飘过的小牛 1.KMP算法: a. 传统字符串的匹配和KMP: 对于字符串S = ”abcabcabdabba”,T = ”abcabd”,如果用T去匹配S下划线部分是当前已经匹配好的前缀,当c和d不匹配时: S:abcabcabdabba T:abcabd 传统
阅读全文
摘要:题目网址:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=110064#problem/A Description There are several ancient Greek texts that contain description
阅读全文
摘要:题目网址: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=110064#problem/D Description Matt’s friend K.Bro is an ACMer. Yesterday, K.Bro learnt an a
阅读全文
摘要:题目网址: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=110060#problem/B Description Input Output Sample Input Sample Output
阅读全文
摘要:题目网址:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=110060#problem/A Description Input Output Sample Input Sample Output 0 1 2 3 s[] a b a b p[
阅读全文
摘要:题目网址:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=110060#problem/D Description Input Output Sample Input Sample Output
阅读全文
摘要:题目网址:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=110060#problem/C Description Input Output Sample Input Sample Output next数组的求解思路: 最重要的就是如何根
阅读全文
摘要:1.kmp算法的原理: 本部分内容转自:http://www.cnblogs.com/c-cloud/p/3224788.html及 http://www.ruanyifeng.com/blog/2013/05/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm
阅读全文
摘要:题目网址:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=109331#problem/D Description Input Output Sample Input Sample Output
阅读全文
摘要:题目网址:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=109331#problem/E Description Input Output Sample Input Sample Output
阅读全文
摘要:题目网址:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=109331#problem/C Description Your task is to determine the maximum and minimum values in th
阅读全文
摘要:题目网址: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=109331#problem/B Description Input Output Sample Input Sample Output Hint
阅读全文
摘要:题目网址:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=109331#problem/A Description Input Output Sample Input Sample Output
阅读全文

浙公网安备 33010602011771号