Suffix Array
SUPER USEFUL Suffix Arrays as a data structure are widely used in areas such as data compression, bioinformatics. They are great for string matching problems.
Let be a string of length . The -th suffix of is the substring .
Since it is not efficient to store all the substrings, the suffix array will only store the integers that represent the starting indexes of the all the suffixes of a given string, after the aforementioned suffixes are sorted.
Resources
Applications
Finding a substring in a string (ONLINE) → If you know the string beforehand, you can just use the Z-Algorithm. However, if you don’t know the string beforehand.