码迷,mamicode.com
首页 >  
搜索关键字:后缀数组    ( 1340个结果
UVA 题目760 DNA Sequencing (后缀数组求两个串最长公共子串,字典序输出)
DNA Sequencing  A DNA molecule consists of two strands that wrap around each other to resemble a twisted ladder whose sides, made of sugar and phosphate molecules, are connected by rungs of...
分类:编程语言   时间:2015-08-27 00:28:26    阅读次数:199
UVA 题目1223 - Editor(后缀数组求出现次数超过两次的最长子串的长度)
Mr. Kim is a professional programmer. Recently he wants to design a new editor which has as many functions as possible. Most editors support a simple search function that finds one occurrence (or all ...
分类:编程语言   时间:2015-08-27 00:25:43    阅读次数:198
UVA 题目11512 - GATTACA(后缀数组求出现次数最多的子串及重复次数)
The Institute of Bioinformatics and Medicine (IBM) of your country has been studying the DNA sequences of several organisms, including the human one. Before analyzing the DNA of an organism, the inv...
分类:编程语言   时间:2015-08-26 20:14:45    阅读次数:251
POJ 题目3294Life Forms(后缀数组求超过k个的串的最长公共子串)
Life Forms Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 11178   Accepted: 3085 Description You may have wondered why most extraterrestrial life forms rese...
分类:编程语言   时间:2015-08-26 17:54:25    阅读次数:155
POJ 题目 3693 Maximum repetition substring(后缀数组+RMQ+枚举求最小字典序的重复次数最多的子串)
Maximum repetition substring Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 8067   Accepted: 2463 Description The repetition number of a string is defined...
分类:编程语言   时间:2015-08-26 14:05:27    阅读次数:176
SPOJ题目687 Repeats(后缀数组+RMQ求重复次数最多的子串的重复次数)
REPEATS - Repeats no tags  A string s is called an (k,l)-repeat if s is obtained by concatenating k>=1 times some seed string t with length l>=1. For example, the string s = abaabaabaaba...
分类:编程语言   时间:2015-08-26 12:05:50    阅读次数:226
后缀数组(一)
o(︶︿︶)o 唉,也是为了应付知识储备太少,万一遇到了类似的题不知道用啥算法就蛋疼了,所以来恶补一下这些东西。 囤一发模板,详细讲解请见2009罗橞骞的论文《后缀数组--处理字符串的有力工具》,基本网上所有的讲解都是来自这篇文章,代码也是这篇论文上的,就不说啥了。 #include using namespace std; #define MAXN 100010 char s[MAXN]...
分类:编程语言   时间:2015-08-26 01:50:44    阅读次数:189
POJ 题目3415 Common Substrings(后缀数组+栈,求可以匹配到的长度大于k的公共子串个数)
Common Substrings Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 8471   Accepted: 2798 Description A substring of a string T is defined as: T(i, k)=TiTi+...
分类:编程语言   时间:2015-08-25 21:57:13    阅读次数:172
URAL 题目1517. Freedom of Choice(后缀数组,求公共最长串)
1517. Freedom of Choice Time limit: 2.0 second Memory limit: 64 MB Background Before Albanian people could bear with the freedom of speech (this story is fully described in the problem "Free...
分类:编程语言   时间:2015-08-21 19:33:06    阅读次数:293
SPOJ 题目705 New Distinct Substrings(后缀数组,求不同的子串个数)
SUBST1 - New Distinct Substrings no tags  Given a string, we need to find the total number of its distinct substrings. Input T- number of test cases. T Output For each test case ou...
分类:编程语言   时间:2015-08-21 19:27:35    阅读次数:168
1340条   上一页 1 ... 90 91 92 93 94 ... 134 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!