Skip to main content
QUICK REVIEW

[Paper Review] Representing the suffix tree with the CDAWG

Djamal Belazzougui, Fabio Cunial|arXiv (Cornell University)|May 24, 2017
Algorithms and Data CompressionComputer Science11 references7 citations
TL;DR

This paper presents a space-efficient representation of the suffix tree using the Compact Directed Acyclic Word Graph (CDAWG), enabling efficient support for key suffix tree operations—such as LCA, suffix array access, and substring extraction—in O(1) to O(log n) time, while maintaining O(e_T + e_{ar{T}}) words of space. The approach leverages heavy path decomposition and connects the reversed CDAWG to a context-free grammar for T, enabling efficient random access to T, the suffix array, and related structures.

ABSTRACT

Given a string $T$, it is known that its suffix tree can be represented using the compact directed acyclic word graph (CDAWG) with $e_T$ arcs, taking overall $O(e_T+e_{\overline{T}})$ words of space, where ${\overline{T}}$ is the reverse of $T$, and supporting some key operations in time between $O(1)$ and $O(\log{\log{n}})$ in the worst case. This representation is especially appealing for highly repetitive strings, like collections of similar genomes or of version-controlled documents, in which $e_T$ grows sublinearly in the length of $T$ in practice. In this paper we augment such representation, supporting a number of additional queries in worst-case time between $O(1)$ and $O(\log{n})$ in the RAM model, without increasing space complexity asymptotically. Our technique, based on a heavy path decomposition of the suffix tree, enables also a representation of the suffix array, of the inverse suffix array, and of $T$ itself, that takes $O(e_T)$ words of space, and that supports random access in $O(\log{n})$ time. Furthermore, we establish a connection between the reversed CDAWG of $T$ and a context-free grammar that produces $T$ and only $T$, which might have independent interest.

Motivation & Objective

  • To design a compressed suffix tree representation that supports efficient operations on highly repetitive strings, such as genomic sequences or version-controlled documents.
  • To reduce space usage below traditional compressed suffix arrays by exploiting the sublinear growth of the CDAWG size in repetitive texts.
  • To extend the CDAWG-based suffix tree representation with additional queries (e.g., suffix array, inverse suffix array, LCP array) while preserving optimal space complexity.
  • To establish a formal link between the reversed CDAWG and a context-free grammar that generates T, enabling efficient string access.
  • To enable O(log n) time random access to T, the suffix array, and related arrays using only O(e_T) words of space.

Proposed method

  • Using heavy path decomposition of the suffix tree to support efficient navigation and operations like LCA, ancestor, and selectLeaf in O(1) to O(log log n) time.
  • Storing BWT intervals and suffix links via the CDAWG structure to enable efficient access to suffix array and inverse suffix array.
  • Leveraging the reversed CDAWG as a straight-line program (grammar) that generates T, allowing O(log n) time access to T[i] and T[i..j] via grammar access queries.
  • Compacting the suffix tree via the CDAWG to exploit isomorphic subtrees, reducing space and enabling grammar-based compression of differential arrays.
  • Using the RLBWT of the reversed string ¯T to support arc label traversal in O(log log n) time per character.
  • Extending the CDAWG-based representation to support additional operations like string depth, parent, and suffix links, all within the same asymptotic space bound.

Experimental results

Research questions

  • RQ1Can the CDAWG be used to represent the suffix tree in O(e_T + e_{ar{T}}) words while supporting key operations in O(1) to O(log log n) time?
  • RQ2Can random access to T, the suffix array, and the inverse suffix array be supported in O(log n) time using only O(e_T) words of space?
  • RQ3Is there a formal connection between the reversed CDAWG and a context-free grammar that generates T, and can this be exploited for efficient string access?
  • RQ4Can operations like LCA, ancestor, and suffix links be supported in O(1) to O(log log n) time without increasing space complexity?
  • RQ5Can the O(log n) term in random access be reduced while maintaining the same space budget, or is it asymptotically unavoidable?

Key findings

  • The suffix tree can be represented using O(e_T + e_{ar{T}}) words of space, where e_T is the number of arcs in the CDAWG of T, enabling sublinear space growth for highly repetitive strings.
  • Key operations such as LCA, leftmostLeaf, and selectLeaf are supported in O(1) to O(log log n) time, improving upon previous O(log n) bounds for some operations.
  • Random access to T[i] and T[i..j] is supported in O(log n) and O(log n + j−i) time, respectively, using the reversed CDAWG as a grammar.
  • The reversed CDAWG is formally linked to a context-free grammar that generates T, providing a theoretical foundation for grammar-based compression of differential arrays.
  • The suffix array, inverse suffix array, and LCP array can all be represented in O(e_T) words with O(log n) random access time, matching the space efficiency of the CDAWG.
  • The approach enables efficient computation of matching statistics and certain substring kernels in O(m log n) time using only O(e_T) space, suitable for repetitive string applications.

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.