Faster suffix sorting

N. Jesper Larsson, Kunihiko Sadakane
2007 Theoretical Computer Science  
We propose a fast and memory-efficient algorithm for lexicographically sorting the suffixes of a string, a problem that has important applications in data compression as well as string matching. Our algorithm eliminates much of the overhead of previous specialized approaches while maintaining their robustness for degenerate inputs. For input size n, our algorithm operates in only two integer arrays of size n, and has worst-case time complexity O(n log n). We demonstrate experimentally that our
more » ... lgorithm has stable performance compared with other approaches.
doi:10.1016/j.tcs.2007.07.017 fatcat:hp4z2fauxfhjxkqiqbdhimfnz4