后缀数组 | 后缀自动机
YOONGI
这个作者很懒,什么都没留下…
展开
-
POJ - 3080 Blue Jeans (后缀数组 多串最大公共子串)
Blue JeansThe Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of contributors to map how the Earth w...原创 2019-08-19 09:28:37 · 148 阅读 · 0 评论 -
CSU - 1632 Repeated Substrings (后缀数组 至少出现两次的子串个数)
Repeated SubstringsString analysis often arises in applications from biology and chemistry, such as the study of DNA and protein molecules. One interesting problem is to find how many substrings ...原创 2019-08-17 17:37:22 · 209 阅读 · 0 评论 -
POJ - 2406 Power Strings (后缀数组 最大重复次数)
Power StringsGiven two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, expone...原创 2019-08-17 15:21:55 · 290 阅读 · 0 评论 -
POJ - 3450 Corporate Identity (后缀数组 多串最大公共子串)
Corporate IdentityBeside other services, ACM helps companies to clearly state their “corporate identity”, which includes company logo but also other signs, like trademarks. One of such companies ...原创 2019-08-16 11:43:12 · 202 阅读 · 0 评论 -
POJ - 3261 Milk Patterns (后缀数组 最长可重叠重复k次子串 + 二分)
Milk PatternsFarmer John has noticed that the quality of milk given by his cows varies from day to day. On further investigation, he discovered that although he can't predict the quality of milk ...原创 2019-08-15 17:13:05 · 233 阅读 · 0 评论 -
POJ - 1743 Musical Theme (后缀数组 最长不重叠重复子串 +二分)
Musical ThemeA musical melody is represented as a sequence of N (1<=N<=20000)notes that are integers in the range 1..88, each representing a key on the piano. It is unfortunate but true tha...原创 2019-08-15 16:48:01 · 129 阅读 · 0 评论 -
POJ - 2774 Long Long Message (后缀数组 最长公共子串)
Long Long MessageThe little cat is majoring in physics in the capital of Byterland. A piece of sad news comes to him these days: his mother is getting ill. Being worried about spending so much on...原创 2019-08-15 15:45:41 · 187 阅读 · 0 评论 -
SPOJ - SUBST1 New Distinct Substrings (后缀数组 不同子串个数)
New Distinct SubstringsGiven a string, we need to find the total number of its distinct substrings.InputT- number of test cases. T<=20; Each test case consists of one string, whose length is ...原创 2019-08-15 15:31:46 · 142 阅读 · 0 评论 -
SPOJ - DISUBSTR Distinct Substrings (后缀数组 不同子串个数)
Distinct SubstringsGiven a string, we need to find the total number of its distinct substrings.InputT- number of test cases. T<=20;Each test case consists of one string, whose length is &...原创 2019-08-15 15:25:10 · 138 阅读 · 0 评论 -
POJ - 1226 Substrings (后缀数组 出现或反转后出现在每个字符串中的最长公共子串)
SubstringsYou are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the given ...原创 2019-08-20 09:17:57 · 166 阅读 · 0 评论 -
SPOJ - PHRASES Relevant Phrases of Annihilation (后缀数组 至少出现两次且不重叠的最长公共子串)
Relevant Phrases of AnnihilationYou are the King of Byteland. Your agents have just intercepted a batch of encrypted enemy messages concerning the date of the planned attack on your island. You i...原创 2019-08-20 08:49:49 · 204 阅读 · 0 评论 -
POJ - 3294 Life Forms (后缀数组 多串至少出现在k个串中的最长公共子串)
Life FormsYou may have wondered why most extraterrestrial life forms resemble humans, differing by superficial traits such as height, colour, wrinkles, ears, eyebrows and the like. A few bear no ...原创 2019-08-19 10:12:51 · 145 阅读 · 0 评论 -
SPOJ - REPEATS Repeats (后缀数组 + RMQ 重复次数最多的连续重复子串的重复次数)
RepeatsA 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 strings = abaabaabaabais a (4,3)-repeat wi...原创 2019-08-17 17:55:56 · 243 阅读 · 0 评论