2020-06-22 14:26:06 +00:00
|
|
|
---
|
|
|
|
id: string-search
|
|
|
|
title: "String Searching"
|
|
|
|
author: Benjamin Qi
|
|
|
|
prerequisites:
|
2020-06-22 20:51:12 +00:00
|
|
|
- Silver - Depth First Search
|
2020-06-22 19:59:16 +00:00
|
|
|
description: Knuth-Morris-Pratt and Z Algorithms (and a few more related topics).
|
2020-06-26 18:00:32 +00:00
|
|
|
frequency: 1
|
2020-06-22 14:26:06 +00:00
|
|
|
---
|
|
|
|
|
2020-06-28 02:11:09 +00:00
|
|
|
export const metadata = {
|
|
|
|
problems: {
|
|
|
|
sample: [
|
|
|
|
new Problem("YS", "Set XOR-Min", "set_xor_min", "Normal", false, [], ""),
|
|
|
|
],
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
<problems-list problems={metadata.problems.sample} />
|
|
|
|
|
|
|
|
## General
|
|
|
|
|
|
|
|
## Tries
|
|
|
|
|
|
|
|
<resources>
|
|
|
|
<resource source="CPH" title="26.2"></resource>
|
|
|
|
<resource source="CF" title="Algorithm Gym" url="blog/entry/15729"></resource>
|
|
|
|
</resources>
|
|
|
|
|
2020-06-22 14:26:06 +00:00
|
|
|
## General Resources
|
|
|
|
|
|
|
|
- [CPC.11](https://github.com/SuprDewd/T-414-AFLV/tree/master/11_strings)
|
|
|
|
- [CP-Algorithms String Processing: Fundamentals](https://cp-algorithms.com/)
|
|
|
|
|
2020-06-28 02:11:09 +00:00
|
|
|
## KMP
|
|
|
|
|
|
|
|
https://cp-algorithms.com/string/prefix-function.html
|
|
|
|
|
|
|
|
## Z Algorithm
|
|
|
|
|
|
|
|
https://cp-algorithms.com/string/z-function.html
|
2020-06-22 14:26:06 +00:00
|
|
|
|
2020-06-24 17:35:48 +00:00
|
|
|
- [yosupo - Z](https://judge.yosupo.jp/problem/zalgorithm)
|
2020-06-22 14:26:06 +00:00
|
|
|
- Tutorial
|
2020-06-23 01:00:35 +00:00
|
|
|
- CPH 26.4 (Z-algorithm)
|
|
|
|
- [PAPS 14.2](https://www.csc.kth.se/~jsannemo/slask/main.pdf)
|
2020-06-22 14:26:06 +00:00
|
|
|
- [paladin8](http://codeforces.com/blog/entry/3107)
|
|
|
|
- [GeeksForGeeks](http://www.geeksforgeeks.org/searching-for-patterns-set-2-kmp-algorithm/)
|
|
|
|
- [TopCoder](https://www.topcoder.com/community/data-science/data-science-tutorials/introduction-to-string-searching-algorithms/)
|
|
|
|
|
|
|
|
## Manacher
|
|
|
|
|
|
|
|
- Has appeared at camp but not in platinum.
|
|
|
|
- [HackerRank](https://www.hackerrank.com/topics/manachers-algorithm)
|
|
|
|
- [adamant](http://codeforces.com/blog/entry/12143)
|
|
|
|
- [cp-algorithms](https://cp-algorithms.com/string/manacher.html)
|
|
|
|
|
|
|
|
## Aho-Corasick
|
|
|
|
|
|
|
|
- Has appeared in old gold.
|
|
|
|
- Tutorial
|
|
|
|
- [adamant](http://codeforces.com/blog/entry/14854)
|
|
|
|
- [GeeksForGeeks](http://www.geeksforgeeks.org/aho-corasick-algorithm-pattern-searching/)
|
2020-06-25 15:52:19 +00:00
|
|
|
|
2020-06-28 02:11:09 +00:00
|
|
|
https://cp-algorithms.com/string/aho_corasick.html
|
|
|
|
|
|
|
|
## Palindromes
|
|
|
|
|
|
|
|
### Manacher
|
|
|
|
|
|
|
|
https://cp-algorithms.com/string/manacher.html
|
|
|
|
|
|
|
|
### Introduction to Palindromic Tree
|
2020-06-26 01:51:05 +00:00
|
|
|
|
|
|
|
[Palindromic Tree](http://codeforces.com/blog/entry/13959)
|
|
|
|
|
|
|
|
APIO Palindrome
|