Skip to main content
QUICK REVIEW

[Paper Review] Construction of Sparse Suffix Trees and LCE Indexes in Optimal Time and Space

Dmitry Kosolobov, Nikita Sivukhin|arXiv (Cornell University)|May 8, 2021
Algorithms and Data CompressionComputer Science33 references3 citations
TL;DR

This paper presents a deterministic algorithm that constructs a τ-partitioning set of size O(b) in O(n/b) time and O(b) space for a string of length n, enabling optimal O(b) space and O(n/b) query time for both sparse suffix trees and LCE indexes. The method leverages compacted tries on bit representations of substrings and precomputed lookup tables to achieve linear-time construction with asymptotically optimal space usage.

ABSTRACT

The notions of synchronizing and partitioning sets are recently introduced variants of locally consistent parsings with great potential in problem-solving. In this paper we propose a deterministic algorithm that constructs for a given readonly string of length $n$ over the alphabet $\{0,1,\ldots,n^{\mathcal{O}(1)}\}$ a variant of $τ$-partitioning set with size $\mathcal{O}(b)$ and $τ= \frac{n}{b}$ using $\mathcal{O}(b)$ space and $\mathcal{O}(\frac{1}εn)$ time provided $b \ge n^ε$, for $ε> 0$. As a corollary, for $b \ge n^ε$ and constant $ε> 0$, we obtain linear construction algorithms with $\mathcal{O}(b)$ space on top of the string for two major small-space indexes: a sparse suffix tree, which is a compacted trie built on $b$ chosen suffixes of the string, and a longest common extension (LCE) index, which occupies $\mathcal{O}(b)$ space and allows us to compute the longest common prefix for any pair of substrings in $\mathcal{O}(n/b)$ time. For both, the $\mathcal{O}(b)$ construction storage is asymptotically optimal since the tree itself takes $\mathcal{O}(b)$ space and any LCE index with $\mathcal{O}(n/b)$ query time must occupy at least $\mathcal{O}(b)$ space by a known trade-off (at least for $b \ge Ω(n / \log n)$). In case of arbitrary $b \ge Ω(\log^2 n)$, we present construction algorithms for the partitioning set, sparse suffix tree, and LCE index with $\mathcal{O}(n\log_b n)$ running time and $\mathcal{O}(b)$ space, thus also improving the state of the art.

Motivation & Objective

  • To develop a deterministic algorithm for constructing sparse suffix trees and LCE indexes in optimal time and space.
  • To address the challenge of building these indexes with only O(b) additional space on top of a readonly string.
  • To improve upon prior deterministic constructions that required O(n log n / b) time or worse.
  • To achieve optimal O(b) space and O(n/b) query time for both data structures, matching known lower bounds.
  • To extend the applicability of locally consistent parsings to deterministic, small-space string indexing.

Proposed method

  • Uses a τ-partitioning set with τ = n/b to enable efficient indexing with O(b) space.
  • Constructs a compacted trie on bit representations of substrings to support fast LCE queries.
  • Employs fusion trees and bit manipulation to build the compacted trie in O(k) time for k substrings.
  • Precomputes a lookup table D for all possible bit chunks encoding substrings, bit arrays, and compacted tries to enable O(1) letter computation.
  • Uses bit shift operations to maintain dynamic bit arrays indicating positions in S′ within sliding windows of size τ.
  • Leverages precomputed tables F to initialize arrays Mi in O(1) time per position, enabling efficient range counting.

Experimental results

Research questions

  • RQ1Can a deterministic algorithm construct a sparse suffix tree in O(n/b) time and O(b) space for any b ≥ n^ϵ?
  • RQ2Is it possible to achieve O(n/b) query time for LCE indexes using only O(b) space and deterministic construction?
  • RQ3How can locally consistent parsings be used to design optimal small-space string indexes?
  • RQ4What is the minimal space and time overhead required to construct a partitioning set of size O(b)?
  • RQ5Can bit-level representations and compacted tries be used to accelerate LCE computation without storing full substrings?

Key findings

  • The algorithm constructs a τ-partitioning set of size O(b) in O(n/b) time and O(b) space for any b ≥ n^ϵ and ϵ > 0.
  • Sparse suffix trees and LCE indexes are constructed in O(n log b n) time and O(b) space for arbitrary b ≥ Ω(log² n), improving prior deterministic bounds.
  • The construction time of O(n/b) is optimal for b ≥ n^ϵ, matching the lower bound for query time.
  • The space usage of O(b) is asymptotically optimal for both data structures, as required by known time-space trade-offs.
  • The use of precomputed lookup tables and bit-level compacted tries enables O(1) per-position processing, leading to linear total time.
  • The method achieves optimal performance without relying on randomization, closing a gap in deterministic small-space indexing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.