[Paper Review] Linear time construction of compressed text indices in compact space
This paper presents a randomized linear-time algorithm for constructing compressed suffix arrays (CSA) and compressed suffix trees (CST) in O(n log σ) bits of space, matching the space complexity of the original text. By introducing a novel stack-based enumeration technique for suffix array intervals and optimizing Burrows-Wheeler transform (BWT) construction, the method achieves O(n) time complexity, significantly improving upon prior O(n log log σ) and O(n log^ε n) bounds under the same space constraints.
We show that the compressed suffix array and the compressed suffix tree for a string of length $n$ over an integer alphabet of size $σ\leq n$ can both be built in $O(n)$ (randomized) time using only $O(n\logσ)$ bits of working space. The previously fastest construction algorithms that used $O(n\logσ)$ bits of space took times $O(n\log\logσ)$ and $O(n\log^εn)$ respectively (where $ε$ is any positive constant smaller than $1$). In the passing, we show that the Burrows-Wheeler transform of a string of length $n$ over an alphabet of size $σ$ can be built in deterministic $O(n)$ time and space $O(n\logσ)$. We also show that within the same time and space, we can carry many sequence analysis tasks and construct some variants of the compressed suffix array and compressed suffix tree.
Motivation & Objective
- To address the performance bottleneck in constructing compressed suffix arrays and trees under compact space constraints.
- To reduce the construction time of compressed suffix structures from O(n log log σ) and O(n log^ε n) to O(n) while maintaining O(n log σ) bits of space.
- To enable efficient sequence analysis tasks within the same time and space bounds.
- To provide a deterministic O(n) construction for the Burrows-Wheeler transform using O(n log σ) bits.
- To extend the approach to support advanced variants of FM-indexes and CSTs with efficient construction.
Proposed method
- Introduces a stack-based enumeration technique for suffix array intervals, replacing the prior queue- and bitvector-based methods to reduce space usage.
- Adapts the bidirectional BWT construction from prior work, optimizing each merge step to run in linear time.
- Uses hashing for constant-time operations in the suffix tree topology, enabling randomized O(n) construction despite the use of hash tables.
- Leverages the FM-index and bidirectional BWT to support efficient Weiner link simulation and interval enumeration.
- Combines the BWT construction with a new method to build the permuted LCP array using bidirectional operations.
- Augments the CST with auxiliary data structures to support child and string level ancestor queries in O(log^ε n) time.
Experimental results
Research questions
- RQ1Can compressed suffix arrays and trees be constructed in O(n) time while using only O(n log σ) bits of space?
- RQ2Can the Burrows-Wheeler transform be computed deterministically in O(n) time and O(n log σ) space?
- RQ3Can the enumeration of suffix array intervals be performed efficiently enough to support linear-time construction of compressed indices?
- RQ4Can advanced variants of the FM-index, such as those supporting Weiner links in constant time, be constructed in randomized linear time?
- RQ5Can sequence analysis problems relying on suffix tree node enumeration be solved in randomized O(n) time under compact space?
Key findings
- The compressed suffix array and compressed suffix tree can both be constructed in randomized O(n) time using only O(n log σ) bits of working space.
- The Burrows-Wheeler transform can be built in deterministic O(n) time and O(n log σ) bits of space.
- The new stack-based interval enumeration technique reduces space usage and enables linear-time construction of CST components.
- The permuted LCP array can be efficiently constructed using bidirectional BWT operations.
- Advanced FM-index variants, including those supporting constant-time Weiner links, can be built in randomized linear time.
- Many sequence analysis problems—such as finding maximal repeats and exact matches—can now be solved in randomized O(n) time within O(n log σ) bits of space.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.