Groups
Category
A suffix array stores the starting indices of all suffixes of a string in lexicographic order, enabling fast substring queries and many string operations.
The prefix function π of a string tells, for every position, the length of the longest proper prefix that is also a suffix of the prefix ending there.