Concepts5
⚙️AlgorithmAdvanced
Suffix Array Construction
A suffix array stores the starting indices of all suffixes of a string in lexicographic order, enabling fast substring queries and many string operations.
#suffix array#lcp array#kasai+12
⚙️AlgorithmAdvanced
Lyndon Factorization
A Lyndon word is a string that is strictly smaller (lexicographically) than all of its nontrivial rotations.
#lyndon word#duval algorithm#booth algorithm+12
🗂️Data StructureAdvanced
Suffix Automaton - Advanced Usage
A suffix automaton (SAM) is a compact DFA that captures all distinct substrings of a string and supports many advanced queries in linear time.
#suffix automaton#endpos#suffix link+12
🗂️Data StructureAdvanced
Suffix Automaton
A suffix automaton (SAM) is the minimal deterministic finite automaton that recognizes all substrings of a string, built online in O(n) time and space.
#suffix automaton#endpos equivalence#suffix link+12
🗂️Data StructureAdvanced
Suffix Array
A suffix array stores the starting indices of all suffixes of a string in lexicographic order.
#suffix array#lcp array#kasai algorithm+11