Faster suffix sorting

  • Authors:
  • N. Jesper Larsson;Kunihiko Sadakane

  • Affiliations:
  • Apptus Technologies, Ideon Science Park, SE-22370 Lund, Sweden;Department of Computer Science and Communication Engineering, Kyushu University, Motooka 744, Nishi-ku, Fukuoka 819-0395, Japan

  • Venue:
  • Theoretical Computer Science
  • Year:
  • 2007

Quantified Score

Hi-index 5.23

Visualization

Abstract

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(nlogn). We demonstrate experimentally that our algorithm has stable performance compared with other approaches.