English

Compressing Suffix Trees by Path Decompositions

Data Structures and Algorithms 2026-05-07 v6

Abstract

The suffix tree is arguably the most fundamental data structure on strings: introduced by Weiner (SWAT 1973) and McCreight (JACM 1976), it allows solving a myriad of computational problems on strings in linear time. Motivated by its large space usage, subsequent research focused first on reducing its size by a constant factor via Suffix Arrays, and later on reaching space proportional to the size of the compressed string. Modern compressed indexes, such as the rr-index (Gagie et al., SODA 2018), fit in space proportional to rr, the number of runs in the Burrows-Wheeler transform (a strong and universal repetitiveness measure). These advances, however, came with a price: while modern compressed indexes boast optimal bounds in the RAM model, they are often orders of magnitude slower than uncompressed counterparts in practice due to catastrophic cache locality. This reality gap highlights that Big-O complexity in the RAM model has become a misleading predictor of real-world performance, leaving a critical question unanswered: can we design compressed indexes that are efficient in the I/O model of computation? We answer this in the affirmative by introducing a new Suffix Array sampling technique based on particular path decompositions of the suffix tree. We prove that sorting the suffix tree leaves by specific priority functions induces a decomposition where the number of distinct paths (each corresponding to a string suffix) is bounded by rr. This allows us to solve indexed pattern matching efficiently in the I/O model using a Suffix Array sample of size at most rr, strictly improving upon the (tight) 2r2r bound of Suffixient Arrays, another recent compressed Suffix Array sampling technique.

Keywords

Cite

@article{arxiv.2506.14734,
  title  = {Compressing Suffix Trees by Path Decompositions},
  author = {Ruben Becker and Davide Cenzato and Travis Gagie and Sung-Hwan Kim and Ragnar Groot Koerkamp and Giovanni Manzini and Nicola Prezza},
  journal= {arXiv preprint arXiv:2506.14734},
  year   = {2026}
}

Comments

accepted at ICALP 2026

R2 v1 2026-07-01T03:22:18.726Z