On the sorting-complexity of suffix tree construction
Open accessThe DOI matches its Crossref record; 20 of the 20 references it cites were found in a registry or an index.
Abstract
The suffix tree of a string is the fundamental data structure of combinatorial pattern matching. We present a recursive technique for building suffix trees that yields optimal algorithms in different computational models. Sorting is an inherent bottleneck in building suffix trees and our algorithms match the sorting lower bound. Specifically, we present the following results. (1) Weiner [1973], who introduced the data structure, gave an optimal 0 ( n )-time algorithm for building the suffix tree of an n -character string drawn from a constant-size alphabet. In the comparison model, there is a trivial Ο( n log n )-time lower bound based on sorting, and Weiner's algorithm matches this bound. For integer alphabets, the fastest known algorithm is the O ( n log n )time comparison-based algorithm, but no super-linear lower bound is known. Closing this gap is the main open question in stringology. We settle this open problem by giving a linear time reduction to sorting for building suffix trees. Since sorting is a lower-bound for building suffix trees, this algorithm is time-optimal in every alphabet mode. In particular, for an alphabet consisting of integers in a polynomial range we get the first known linear-time algorithm. (2) All previously known algorithms for building suffix trees exhibit a marked absence of locality of reference, and thus they tend to elicit many page faults (I/Os) when indexing very long strings. They are therefore unsuitable for building suffix trees in secondary storage devices, where I/Os dominate the overall computational cost. We give a linear-I/O reduction to sorting for suffix tree construction. Since sorting is a trivial I/O-lower bound for building suffix trees, our algorithm is I/O-optimal.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
The Design and Analysis of Computer Algorithms
Aho, A. V., & Hopcroft, J. E. (1974) · CERN Document Server (European Organization for Nuclear Research) · Cited by 9,403
Algorithms on Strings, Trees and Sequences: Computer Science and Computational Biology
Gusfield, D. (1997) · Cambridge University Press eBooks · doi:10.1017/cbo9780511574931 · Cited by 3,078 · cited 1×
“tree construction as their I/O bottleneck [Gusfield 1998].”
BackgroundSuffix Arrays: A New Method for On-Line String Searches
Manber, U., & Myers, G. (1993) · SIAM Journal on Computing · doi:10.1137/0222058 · Cited by 1,915 · cited 2×
“By using our result, we trivially get the first known I/O-optimal suffix array [Manber and Myers 1993] and String B-tree [Ferragina and Grossi 1999] construction algorithms.”
MethodLinear pattern matching algorithms
Weiner, P. (1973) · 14th Annual Symposium on Switching and Automata Theory (swat 1973) · doi:10.1109/swat.1973.13 · Cited by 1,801 · cited 2×
“[WEINER 1973].”
BackgroundProceedings of the 56th Annual ACM Symposium on Theory of Computing
(2024) · doi:10.1145/3618260 · Cited by 1,730
Algorithms on strings, trees, and sequences
Gusfield, D. (1997) · Cited by 1,697
A Space-Economical Suffix Tree Construction Algorithm
McCreight, E. M. (1976) · Journal of the ACM · doi:10.1145/321941.321946 · Cited by 1,511 · cited 2×
“Some effort has been spent on producing simplified linear time algorithms [Chen and Seiferas 1985; McCreight 1976], though all such efforts have been variants of the original approach of Weiner.”
The input/output complexity of sorting and related problems
Aggarwal, A., & Vitter, J. (1988) · Communications of the ACM · doi:10.1145/48529.48535 · Cited by 1,220
Fast Algorithms for Finding Nearest Common Ancestors
Harel, D., & Tarjan, R. E. (1984) · SIAM Journal on Computing · doi:10.1137/0213024 · Cited by 1,073 · cited 3×
“THEOREM 3.1 [HAREL AND TARJAN 1984; BENDER AND FARACH-COLTON 2000].”
MethodInfluentialOptimal suffix tree construction with large alphabets
Farach, M. (2002) · Proceedings 38th Annual Symposium on Foundations of Computer Science · doi:10.1109/sfcs.1997.646102 · Cited by 443 · cited 21×
“Categories and Subject Descriptors: D.4.2 [Operating System]: Storage Management main memory, secondary storage; E.1 [Data Structures]: Trees; E.5 [Files]: Sorting/searching; F.1.1 [Computation by Abstract Devices]: Models of computation; F.2.2 [Analysis of Algorithms and Problem Complexity]: Nonnumerical algorithms a…”
MethodInfluentialAlgorithms for parallel memory, I: Two-level memories
Vitter, J. S., & Shriver, E. (1994) · Algorithmica · doi:10.1007/bf01185207 · Cited by 386
The string B-tree: a new data structure for string search in external memory and its applications
Ferragina, P., & Grossi, R. (1999) · Journal of the ACM · doi:10.1145/301970.301973 · Cited by 317 · cited 2×
“By using our result, we trivially get the first known I/O-optimal suffix array [Manber and Myers 1993] and String B-tree [Ferragina and Grossi 1999] construction algorithms.”
MethodSelf-citationCombinatorial Algorithms on Words
(1985) · Springer eBooks · doi:10.1007/978-3-642-82456-2 · Cited by 289
External-memory graph algorithms
Chiang, Y., Goodrich, M. T., Grove, E. F., Tamassia, R., Vengroff, D. E., & Vitter, J. S. (1995) · KU ScholarWorks (University of Kansas) · doi:10.5555/313651.313681 · Cited by 275
Symmetry breaking for suffix tree construction
Şahinalp, S. C., & Vishkin, U. (1994) · ACM Symposium on Theory of Computing (STOC) · doi:10.1145/195058.195164 · Cited by 106 · cited 1×
“The construction of suffix trees remains an active area of research [Kosaraju 1994; Sahinalp and Vishkin 1994; Hariharan 1997], but several issues remain open.”
BackgroundOn sorting strings in external memory (extended abstract)
Arge, L., Ferragina, P., Grossi, R., & Vitter, J. S. (1997) · ACM Symposium on Theory of Computing (STOC) · doi:10.1145/258533.258647 · Cited by 95 · cited 2×
“Previous string processing results on the PDAM have all been suboptimal [Arge et al. 1997].”
MethodSelf-citationGreed sort: optimal deterministic sorting on parallel disks
Nodine, M. H., & Vitter, J. S. (1995) · Journal of the ACM · doi:10.1145/210332.210343 · Cited by 73
Overcoming the memory bottleneck in suffix tree construction
Farach-Colton, M., Ferragina, P., & Muthukrishnan, S. (2002) · Annual Symposium on Foundations of Computer Science · doi:10.1109/sfcs.1998.743441 · Cited by 61 · cited 2×
“…paper we elucidate novel structural properties of odd and even trees, and design new algorithms for merging To and Te that are optimal in many computational models such as the RAM [Farach 1997], the PRAM [Farach and Muthukrishnan, 1996], and various external memory models [Farach et al. 1998].”
MethodSelf-citationVitter, J. S. (1998) · Lecture notes in computer science · doi:10.1007/3-540-68530-8_1 · Cited by 42
(1997)
Cited by
Navarro, G., & Mäkinen, V. (2007) · ACM Computing Surveys · doi:10.1145/1216370.1216372 · Cited by 735
“With respect to construction of (plain) indexes in secondary memory, there is a good experimental comparison for suf.x arrays [Crauser and Ferragina 2002], as well as some work on suf.x trees [Farach et al. 2000; Clifford 2005].”
BackgroundCompressed Suffix Arrays and Suffix Trees with Applications to Text Indexing and String Matching
Grossi, R., & Vitter, J. S. (2005) · SIAM Journal on Computing · doi:10.1137/s0097539702402354 · Cited by 431
Simple Linear Work Suffix Array Construction
Kärkkäinen, J., & Sanders, P. (2003) · Lecture Notes in Computer Science · doi:10.1007/3-540-45061-0_73 · Cited by 404
Metadata
- Authors
- Farach-Colton, M., Ferragina, P., & Muthukrishnan, S.
- Venue
- Journal of the ACM
- Published
- 2000-11
- Volume
- 47
- Issue
- 6
- Pages
- 987-1011
- ISSN
- 0004-5411 (ISSN-L)
- 1557-735X
- OpenAlex
- W2024147613
- Cited by
- 208
- References
- 20
- FWCI
- 5.00
- Type
- journal article
- Language
- en
- Open access
- bronze
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.