Space-Efficient Construction of Compressed Suffix Trees

Nicola Prezza, Giovanna Rosone
8/12/2019
cs.DS

Official code: nicolaprezza/bwt2lcp (5 stars, C++, MIT, last commit 2020-12-02).

Abstract

We show how to build several data structures of central importance to string processing, taking as input the Burrows-Wheeler transform (BWT) and using small extra working space. Let $n$ be the text length and $σ$ be the alphabet size.

Show full abstract

We first provide two algorithms that enumerate all LCP values and suffix tree intervals in $O(n\logσ)$ time using just $o(n\logσ)$ bits of working space on top of the input BWT. Using these algorithms as building blocks, for any parameter $0 < ε\leq 1$ we show how to build the PLCP bitvector and the balanced parentheses representation of the suffix tree topology in $O\left(n(\logσ+ ε^{-1}\cdot \log\log n)\right)$ time using at most $n\logσ\cdot(ε+ o(1))$ bits of working space on top of the input BWT and the output. In particular, this implies that we can build a compressed suffix tree from the BWT using just succinct working space (i.e. $o(n\logσ)$ bits) and any time in $Θ(n\logσ) + ω(n\log\log n)$. This improves the previous most space-efficient algorithms, which worked in $O(n)$ bits and $O(n\log n)$ time. We also consider the problem of merging BWTs of string collections, and provide a solution running in $O(n\logσ)$ time and using just $o(n\logσ)$ bits of working space. An efficient implementation of our LCP construction and BWT merge algorithms use (in RAM) as few as $n$ bits on top of a packed representation of the input/output and process data as fast as $2.92$ megabases per second.

View on arXivView PDF

Code Implementations(1)

MIT

Compute the LCP array from the BWT of a set of DNA strings.

52C++, CMakeJan 15, 20196 years agoMIT

Similar Papers

Cite this paper

@article{prezza2019spaceefficient,
  title  = {Space-Efficient Construction of Compressed Suffix Trees},
  author = {Nicola Prezza and Giovanna Rosone},
  year   = {2019},
  eprint = {1908.04686},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1908.04686}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1908.04686.svg)](https://codeofpaper.com/paper/1908.04686)

Discussion