[Paper Review] Space-Efficient Computation of the LCP Array from the Burrows-Wheeler Transform
This paper presents space-efficient algorithms to compute the LCP array and merge BWTs of string collections directly from the Burrows-Wheeler Transform (BWT), using o(n log σ) bits of working space on top of input and output. By combining Belazzougui's suffix tree interval enumeration with Beller et al.'s LCP construction, the method achieves optimal space usage while maintaining O(n log σ) time complexity, significantly improving over prior O(n) working space solutions for small alphabets and generalizing to collections.
We show that the Longest Common Prefix Array of a text collection of total size n on alphabet [1, {\\sigma}] can be computed from the Burrows-Wheeler transformed collection in O(n log {\\sigma}) time using o(n log {\\sigma}) bits of working space on top of the input and output. Our result improves (on small alphabets) and generalizes (to string collections) the previous solution from Beller et al., which required O(n) bits of extra working space. We also show how to merge the BWTs of two collections of total size n within the same time and space bounds. The procedure at the core of our algorithms can be used to enumerate suffix tree intervals in succinct space from the BWT, which is of independent interest. An engineered implementation of our first algorithm on DNA alphabet induces the LCP of a large (16 GiB) collection of short (100 bases) reads at a rate of 2.92 megabases per second using in total 1.5 Bytes per base in RAM. Our second algorithm merges the BWTs of two short-reads collections of 8 GiB each at a rate of 1.7 megabases per second and uses 0.625 Bytes per base in RAM. An extension of this algorithm that computes also the LCP array of the merged collection processes the data at a rate of 1.48 megabases per second and uses 1.625 Bytes per base in RAM.
Motivation & Objective
- To compute the LCP array from the BWT of a text collection using sublinear working space.
- To generalize space-efficient LCP computation from single texts to collections of strings.
- To design a space-efficient algorithm for merging the BWTs of two string collections.
- To enable succinct enumeration of suffix tree intervals from the BWT, which supports the core algorithms.
- To achieve high performance on large-scale biological data, such as short-read collections, with minimal RAM usage.
Proposed method
- Leverages Belazzougui's algorithm to enumerate right-maximal substrings and their SA-ranges from the BWT using a wavelet tree representation.
- Adapts the enumeration to include leaf intervals of the generalized suffix tree, enabling LCP array construction for collections.
- Uses a hybrid data structure strategy: for small alphabets (σ < √n / log²n), it uses O(σ² log²n) working space; for larger alphabets, it falls back to Beller et al.'s O(n) space method.
- Reuses the output space of the LCP array and Document Array to store intermediate wavelet matrices, reducing total working space to o(n log σ) bits.
- Employs a priority queue or stack to manage interval pairs during BWT merging, depending on alphabet size, to maintain space efficiency.
- Uses backward search with rank operations on wavelet trees to compute SA-ranges of extended substrings during enumeration and merging.
Experimental results
Research questions
- RQ1Can the LCP array be induced from the BWT using sublinear working space, specifically o(n log σ) bits?
- RQ2How can the suffix tree interval enumeration procedure be extended to include leaf nodes for generalized suffix trees of string collections?
- RQ3Is it possible to merge two BWTs of string collections using o(n log σ) bits of working space while preserving the ability to reconstruct the merged BWT?
- RQ4What is the performance trade-off between space efficiency and time complexity when computing the LCP array and merging BWTs?
- RQ5Can the proposed algorithms be efficiently implemented on real biological data, such as short DNA reads, with minimal RAM usage?
Key findings
- The LCP array of a text collection of total size n on alphabet [1, σ] can be computed in O(n log σ) time using o(n log σ) bits of working space on top of the BWT and LCP.
- The algorithm generalizes Beller et al.'s O(n) working space solution to work with string collections and reduces space usage to o(n log σ) bits.
- The BWTs of two collections of total size n can be merged in O(n log σ) time using o(n log σ) bits of working space, with the Document Array computed as a byproduct.
- An engineered implementation on a DNA alphabet processes 16 GiB of 100-bp short reads at 2.92 megabases per second using only 1.5 Bytes per base in RAM.
- The BWT merging algorithm processes two 8 GiB collections at 1.7 megabases per second with 0.625 Bytes per base in RAM.
- An extended version that computes the LCP array of the merged collection runs at 1.48 megabases per second using 1.625 Bytes per base in RAM.
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.