Skip to main content
QUICK REVIEW

[Paper Review] Composite repetition-aware data structures

Djamal Belazzougui, Fabio Cunial|arXiv (Cornell University)|Feb 20, 2015
Algorithms and Data CompressionComputer Science9 references13 citations
TL;DR

This paper introduces composite data structures for highly repetitive strings that combine run-length encoded Burrows-Wheeler transform (RLBWT), compact directed acyclic word graph (CDAWG), and LZ77-based components to achieve space efficiency and fast pattern reporting. The key contribution is a new suffix tree representation using $e$ (right extensions of maximal repeats) and $e^\ell$ (left extensions), enabling $O(m\log\log n)$ time matching statistics and constant-space traversal with $O(e + e^\ell)$ space.

ABSTRACT

In highly repetitive strings, like collections of genomes from the same species, distinct measures of repetition all grow sublinearly in the length of the text, and indexes targeted to such strings typically depend only on one of these measures. We describe two data structures whose size depends on multiple measures of repetition at once, and that provide competitive tradeoffs between the time for counting and reporting all the exact occurrences of a pattern, and the space taken by the structure. The key component of our constructions is the run-length encoded BWT (RLBWT), which takes space proportional to the number of BWT runs: rather than augmenting RLBWT with suffix array samples, we combine it with data structures from LZ77 indexes, which take space proportional to the number of LZ77 factors, and with the compact directed acyclic word graph (CDAWG), which takes space proportional to the number of extensions of maximal repeats. The combination of CDAWG and RLBWT enables also a new representation of the suffix tree, whose size depends again on the number of extensions of maximal repeats, and that is powerful enough to support matching statistics and constant-space traversal.

Motivation & Objective

  • To design data structures for highly repetitive strings that depend on multiple repetition measures simultaneously, improving space and time efficiency.
  • To reduce the space and time overhead of pattern counting and reporting in repetitive collections, such as genomic databases.
  • To introduce a new measure, $e$, the number of right extensions of maximal repeats, as a more refined metric for repetitiveness than $r$ (BWT runs) or $z$ (LZ77 factors).
  • To enable efficient suffix tree operations—such as matching statistics and constant-space traversal—using a composite structure based on RLBWT and CDAWG.
  • To achieve competitive tradeoffs between space, pattern reporting time, and support for advanced operations like suffix links and Weiner links.

Proposed method

  • Combines run-length encoded BWT (RLBWT) with the compact directed acyclic word graph (CDAWG) and LZ77-based components to build composite indexes.
  • Represents the suffix tree using a tuple $\mathtt{id}(v) = (v^\prime, |\ell(v)|, i, j)$, where $v^\prime$ is the CDAWG node, and $[i..j]$ is the BWT interval of the string label $\ell(v)$.
  • Uses RLBWT for fast pattern counting and interval queries, while CDAWG provides compact representation of maximal repeats and their extensions.
  • Employs backward search on RLBWT and backward sampling on $\mathsf{RLBWT}_{\overline{T}}$ to support bidirectional string operations.
  • Implements suffix links and Weiner links via interval containment and backward steps in BWT, leveraging CDAWG structure and RLBWT intervals.
  • Supports constant-time $\mathtt{stringDepth}$, $\mathtt{child}$, and $\mathtt{firstChild}$, and $O(\log\log n)$-time $\mathtt{parent}$ and $\mathtt{nextSibling}$ using predecessor queries on interval boundaries.

Experimental results

Research questions

  • RQ1Can combining RLBWT, CDAWG, and LZ77 components yield a data structure with space complexity dependent on multiple repetition measures?
  • RQ2Can the number of right extensions of maximal repeats ($e$) serve as a more effective measure of repetitiveness than $r$ (BWT runs) or $z$ (LZ77 factors) for compressed string indexes?
  • RQ3Can a composite structure support efficient matching statistics and constant-space traversal of the suffix tree using only $O(e + e^\ell)$ space?
  • RQ4Can the combination of RLBWT and CDAWG enable faster pattern reporting than traditional RLBWT with suffix array sampling or LZ77 indexes?
  • RQ5Is it possible to implement bidirectional string operations (left/right extension) in $O(\log\log n)$ time using the composite structure?

Key findings

  • The proposed data structure reports all $\mathtt{occ}$ occurrences of a pattern of length $m$ in $O(m(\log\log n + \log z) + \mathtt{pocc}\log^\epsilon z + \mathtt{socc}\log\log n)$ time, with space $O(z + r)$ words.
  • A new suffix tree representation based on $e$ (right extensions of maximal repeats) and $e^\ell$ (left extensions) uses $O(e + e^\ell)$ words of space.
  • Matching statistics for a pattern of length $m$ can be computed in $O(m\log\log n)$ time using the composite suffix tree structure.
  • Constant-space traversal of the suffix tree is supported in $O(n\log\log n)$ time using the composite structure.
  • The structure supports bidirectional indexing with $O(\log\log n)$ time per left/right extension, using $O(e + e^\ell)$ space.
  • The use of CDAWG and RLBWT together enables efficient implementation of suffix links and Weiner links via interval operations and predecessor queries.

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.