Compressed Suffix Arrays and Suffix Trees with Applications to Text Indexing and String Matching
Open accessThe DOI matches its Crossref record; 47 of the 47 references it cites were found in a registry or an index.
Abstract
The proliferation of online text, such as found on the World Wide Web and in online databases, motivates the need for space-efficient text indexing methods that support fast string searching. We model this scenario as follows: Consider a text T consisting of n symbols drawn from a fixed alphabet $\Sigma$. The text T can be represented in $n \lg |\Sigma|$ bits by encoding each symbol with $\lg |\Sigma|$ bits. The goal is to support fast online queries for searching any string pattern P of m symbols, with T being fully scanned only once, namely, when the index is created at preprocessing time. The text indexing schemes published in the literature are greedy in terms of space usage: they require $\Omega(n \lg n)$ additional bits of space in the worst case. For example, in the standard unit cost RAM, suffix trees and suffix arrays need $\Omega(n)$ memory words, each of $\Omega(\lg n)$ bits. These indexes are larger than the text itself by a multiplicative factor of $\Omega(\smash{\lg_{|\Sigma|} n})$, which is significant when $\Sigma$ is of constant size, such as in \textsc{ascii} or \textsc{unicode}. On the other hand, these indexes support fast searching, either in $O(m \lg |\Sigma|)$ time or in $O(m +\lg n)$ time, plus an output-sensitive cost $O(\mathit{occ})$ for listing the $\mathit{occ}$ pattern occurrences. We present a new text index that is based upon compressed representations of suffix arrays and suffix trees. It achieves a fast $\smash{O(m /\lg_{|\Sigma|} n + \lg_{|\Sigma|}^\epsilon n)}$ search time in the worst case, for any constant $0 < \epsilon \leq 1$, using at most $\smash{\bigl(\epsilon^{-1} + O(1)\bigr) \, n \lg |\Sigma|}$ bits of storage. Our result thus presents for the first time an efficient index whose size is provably linear in the size of the text in the worst case, and for many scenarios, the space is actually sublinear in practice. As a concrete example, the compressed suffix array for a typical 100 MB \textsc{ascii} file can require 30--40 MB or less, while the raw suffix array requires 500 MB. Our theoretical bounds improve \emph{both} time and space of previous indexing schemes. Listing the pattern occurrences introduces a sublogarithmic slowdown factor in the output-sensitive cost, giving $O(\mathit{occ} \, \smash{\lg_{|\Sigma|}^\epsilon n})$ time as a result. When the patterns are sufficiently long, we can use auxiliary data structures in $O(n \lg |\Sigma|)$ bits to obtain a total search bound of $O(m /\lg_{|\Sigma|} n + \mathit{occ})$ time, which is 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
On observing nondeterminism and concurrency
Hennessy, M., & Milner, R. (1980) · Lecture Notes in Computer Science · doi:10.1007/3-540-10003-2_79 · Cited by 4,492
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
Fast Pattern Matching in Strings
Knuth, D. E., Morris, Jr., & Pratt, V. R. (1977) · SIAM Journal on Computing · doi:10.1137/0206024 · Cited by 2,936
Suffix 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
Linear 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
Knuth, D. E. (1973) · Cumulative Index of Computer Aided Architectural Design · Cited by 1,719
A Space-Economical Suffix Tree Construction Algorithm
McCreight, E. M. (1976) · Journal of the ACM · doi:10.1145/321941.321946 · Cited by 1,511
On-line construction of suffix trees
Ukkonen, E. (1995) · Algorithmica · doi:10.1007/bf01206331 · Cited by 1,472
Opportunistic data structures with applications
Ferragina, P., & Manzini, G. (2002) · Proceedings 41st Annual Symposium on Foundations of Computer Science · doi:10.1109/sfcs.2000.892127 · Cited by 1,063
PATRICIA—Practical Algorithm To Retrieve Information Coded in Alphanumeric
Morrison, D. R. (1968) · Journal of the ACM · doi:10.1145/321479.321481 · Cited by 969
Storing a Sparse Table with 0 (1) Worst Case Access Time
Fredman, M. L., Komlós, J., & Szemerédi, E. (1984) · Journal of the ACM · doi:10.1145/828.1884 · Cited by 748
High-order entropy-compressed text indexes
Grossi, R., Gupta, A. K., & Vitter, J. S. (2003) · doi:10.5555/644108.644250 · Cited by 648
Self-citationSpace-efficient static trees and graphs
Jacobson, G. (1989) · 30th Annual Symposium on Foundations of Computer Science · doi:10.1109/sfcs.1989.63533 · Cited by 634
(1995) · Choice Reviews Online · doi:10.5860/choice.32-5696 · Cited by 582
Optimal 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
Self-indexing inverted files for fast text retrieval
Moffat, A., & Zobel, J. (1996) · ACM Transactions on Information Systems · doi:10.1145/237496.237497 · Cited by 361
Inverted files versus signature files for text indexing
Zobel, J., Moffat, A., & Ramamohanarao, K. (1998) · ACM Transactions on Database Systems · doi:10.1145/296854.277632 · Cited by 341
The smallest automation recognizing the subwords of a text
Blumer, A., Blumer, J., Haussler, D., Ehrenfeucht, A., Chen, M. T., & Seiferas, J. (1985) · Theoretical Computer Science · doi:10.1016/0304-3975(85)90157-4 · Cited by 334
Reducing the space requirement of suffix trees
Kurtz, S. (1999) · Software: Practice and Experience · doi:10.1002/(sici)1097-024x(199911)29:13<1149::aid-spe274>3.0.co;2-o · Cited by 334
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
Self-citationNew indices for text: PAT Trees and PAT arrays
Gonnet, G. H., Baeza-Yates, R. A., & Snider, T. (1992) · Information Retrieval · Cited by 272
Clark, D. R. (1998) · Cited by 269
GLIMPSE: a tool to search through entire file systems
Manber, U., & Wu, S. (1994) · USENIX Winter Technical Conference · Cited by 251
Complete inverted files for efficient text retrieval and analysis
Blumer, A., Blumer, J., Haussler, D., McConnell, R., & Ehrenfeucht, A. (1987) · Journal of the ACM · doi:10.1145/28869.28873 · Cited by 239
Crochemore, M. (1986) · Theoretical Computer Science · doi:10.1016/0304-3975(86)90041-1 · Cited by 224
On the sorting-complexity of suffix tree construction
Farach-Colton, M., Ferragina, P., & Muthukrishnan, S. (2000) · Journal of the ACM · doi:10.1145/355541.355547 · Cited by 208
Efficient worst-case data structures for range searching
Bentley, J. L., & Maurer, H. A. (1980) · Acta Informatica · doi:10.1007/bf00263991 · Cited by 204
Grossi, R., & Vitter, J. S. (2000) · Proceedings of the thirty-second annual ACM symposium on Theory of computing · doi:10.1145/335305.335351 · Cited by 202
Self-citationAn experimental study of an opportunistic index
Ferragina, P., & Manzini, G. (2001) · doi:10.5555/365411.365458 · Cited by 165
New data structures for orthogonal range searching
Alstrup, S., Stolting Brodal, G., & Rauhe, T. (2002) · Proceedings 41st Annual Symposium on Foundations of Computer Science · doi:10.1109/sfcs.2000.892088 · Cited by 160
Succinct representation of balanced parentheses, static trees and planar graphs
Munro, J. I., & Raman, V. (2002) · Annual Symposium on Foundations of Computer Science · doi:10.1109/sfcs.1997.646100 · Cited by 158
Succinct representations of lcp information and improvements in the compressed suffix arrays
Sadakane, K. (2002) · doi:10.5555/545381.545410 · Cited by 134
Compression: a key for next-generation text retrieval systems
Ziviani, N., de Moura, E. S., Navarro, G., & Baeza-Yates, R. A. (2000) · Computer · doi:10.1109/2.881693 · Cited by 134
Compressed Text Databases with Efficient Query Algorithms Based on the Compressed Suffix Array
Sadakane, K. (2000) · Lecture notes in computer science · doi:10.1007/3-540-40996-3_35 · Cited by 124
Efficient implementation of lazy suffix trees
Giegerich, R., Kurtz, S., & Stoye, J. (2003) · Software Practice and Experience · doi:10.1002/spe.535 · Cited by 123
Munro, J. I., Raman, V., & Satti, S. R. (2001) · Journal of Algorithms · doi:10.1006/jagm.2000.1151 · Cited by 116
Kärkkäinen, J., & Ukkonen, E. (1996) · Lecture notes in computer science · doi:10.1007/3-540-61332-3_155 · Cited by 109
Munro, I., Raman, V., & Satti, S. R. (1998) · Lecture notes in computer science · doi:10.1007/978-3-540-49382-2_17 · Cited by 91
Breaking a time-and-space barrier in constructing full-text indices
Hon, W.-K., Sadakane, K., & Sung, W.-K. K. (2004) · Annual Symposium on Foundations of Computer Science · doi:10.1109/sfcs.2003.1238199 · Cited by 91
Efficient implementation of suffix trees
Andersson, A., & Nilsson, S. (1995) · Software Practice and Experience · doi:10.1002/spe.4380250203 · Cited by 66
Suffix cactus: A cross between suffix tree and suffix array
Kärkkäinen, J. (1995) · Lecture notes in computer science · doi:10.1007/3-540-60044-2_43 · Cited by 61
Approximate dictionary queries
Brodal, G. S., & Gąsieniec, L. A. (1996) · Lecture notes in computer science · doi:10.1007/3-540-61258-0_6 · Cited by 52
Kärkkäinen, J., & Sutinen, E. (1998) · Algorithmica · doi:10.1007/pl00009205 · Cited by 43
Dictionary Look-Up with One Error
Yao, A. C.-C., & Yao, F. (1997) · Journal of Algorithms · doi:10.1006/jagm.1997.0875 · Cited by 38
Mäkinen, V. (2000) · Lecture notes in computer science · doi:10.1007/3-540-45123-4_26 · Cited by 26
A time and space efficient data structure for string searching on large texts
Colussi, L., & Col, A. D. (1996) · Information Processing Letters · doi:10.1016/0020-0190(96)00061-0 · Cited by 26
(1997)
Cited by
Fast and accurate short read alignment with Burrows-Wheeler transform
Li, H., & Durbin, R. (2009) · Bioinformatics · doi:10.1093/bioinformatics/btp324 · Cited by 58,607
Opportunistic data structures with applications
Ferragina, P., & Manzini, G. (2002) · Proceedings 41st Annual Symposium on Foundations of Computer Science · doi:10.1109/sfcs.2000.892127 · Cited by 1,063
Navarro, G., & Mäkinen, V. (2007) · ACM Computing Surveys · doi:10.1145/1216370.1216372 · Cited by 735
Ferragina, P., & Manzini, G. (2005) · Journal of the ACM · doi:10.1145/1082036.1082039 · Cited by 686
Replacing suffix trees with enhanced suffix arrays
Abouelhoda, M. I., Kurtz, S., & Ohlebusch, E. (2004) · Journal of Discrete Algorithms · doi:10.1016/s1570-8667(03)00065-0 · Cited by 668
Metadata
- Authors
- Grossi, R., & Vitter, J. S.
- Venue
- SIAM Journal on Computing
- Published
- 2005-01
- Volume
- 35
- Issue
- 2
- Pages
- 378-407
- ISSN
- 0097-5397
- 1095-7111
- OpenAlex
- W2170899819
- Cited by
- 431
- References
- 47
- FWCI
- 29.89
- Type
- journal article
- Language
- en
- Open access
- green
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.