[][src]Module contest_algorithms::string_proc

String processing algorithms.

Structs

Matcher

Data structure for Knuth-Morris-Pratt string matching against a pattern.

SuffixArray

Suffix array data structure, useful for a variety of string queries.

Trie

Prefix trie

Functions

palindromes

Manacher's algorithm for computing palindrome substrings in linear time. pal[2i] = odd length of palindrome centred at text[i]. pal[2i+1] = even length of palindrome centred at text[i+0.5].