Skip to main content
QUICK REVIEW

[Paper Review] Dynamic index, LZ factorization, and LCE queries in compressed space

Takaaki Nishimoto, I Tomohiro|arXiv (Cornell University)|Apr 27, 2015
Algorithms and Data CompressionComputer Science27 references16 citations
TL;DR

This paper presents a dynamic compressed index using LZ77 factorization and signature encodings, enabling efficient pattern search, substring updates, and LCE queries in compressed space. It achieves faster search and update times than prior work by exploiting properties of locally consistent parsing and achieving $O(w)$ space with $w = O(z\log N\log^* M)$, where $z$ is the LZ77 factorization size.

ABSTRACT

In this paper, we present the following results: (1) We propose a new \emph{dynamic compressed index} of $O(w)$ space, that supports searching for a pattern $P$ in the current text in $O(|P| f(M,w) + \log w \log |P| \log^* M (\log N + \log |P| \log^* M) + \mathit{occ} \log N)$ time and insertion/deletion of a substring of length $y$ in $O((y+ \log N\log^* M)\log w \log N \log^* M)$ time, where $N$ is the length of the current text, $M$ is the maximum length of the dynamic text, $z$ is the size of the Lempel-Ziv77 (LZ77) factorization of the current text, $f(a,b) = O(\min \{ \frac{\log\log a \log\log b}{\log\log\log a}, \sqrt{\frac{\log b}{\log\log b}} \})$ and $w = O(z \log N \log^*M)$. (2) We propose a new space-efficient LZ77 factorization algorithm for a given text of length $N$, which runs in $O(N f(N,w') + z \log w' \log^3 N (\log^* N)^2)$ time with $O(w')$ working space, where $w' =O(z \log N \log^* N)$. (3) We propose a data structure of $O(w)$ space which supports longest common extension (LCE) queries on the text in $O(\log N + \log \ell \log^* N)$ time, where $\ell$ is the output LCE length. On top of the above contributions, we show several applications of our data structures which improve previous best known results on grammar-compressed string processing.

Motivation & Objective

  • To design a dynamic compressed text index that supports efficient pattern searching and substring updates in compressed space.
  • To develop a space-efficient algorithm for computing LZ77 factorization using only $O(w')$ working space.
  • To construct a data structure supporting longest common extension (LCE) queries in compressed space with fast query time.
  • To improve existing results in grammar-compressed string processing by applying the proposed data structures.
  • To demonstrate that the proposed index outperforms prior dynamic compressed indexes in both search and update efficiency.

Proposed method

  • Leverages Mehlhorn et al.’s locally consistent parsing and Alstrup et al.’s fast string concatenation/splitting algorithms for dynamic string management.
  • Uses signature encodings of strings to support efficient equality testing and dynamic updates without anchors.
  • Introduces a novel property of signature encodings (Lemma 12) enabling pattern search time proportional to the actual number of occurrences $\mathit{occ}$, not a superset.
  • Employs a compressed data structure based on LZ77 factorization to support LCE queries in $O(\log N + \log\ell\log^* N)$ time.
  • Constructs a dynamic index with $O(w)$ space where $w = O(z\log N\log^* M)$, enabling efficient updates and searches.
  • Applies the index to grammar-compressed string processing tasks, such as palindrome detection and Lyndon factorization, via efficient LCE and LCP queries.

Experimental results

Research questions

  • RQ1Can a dynamic compressed index be constructed that supports efficient pattern search and substring updates in compressed space?
  • RQ2Can LZ77 factorization be computed in $O(w')$ working space with improved time complexity compared to prior methods?
  • RQ3Can a compressed data structure be designed to support LCE queries in $O(\log N + \log\ell\log^* N)$ time with $O(w)$ space?
  • RQ4Can the proposed index and data structures be used to improve existing algorithms for grammar-compressed string processing tasks?
  • RQ5How does the performance of the proposed index compare to existing dynamic compressed indexes in terms of search and update time?

Key findings

  • The dynamic compressed index supports pattern search in $O(|P|f(M,w) + \log w\log|P|\log^* M(\log N + \log|P|\log^* M) + \mathit{occ}\log N)$ time with $O(w)$ space, where $f(M,w) = O(\min\{\frac{\log\log M\log\log w}{\log\log\log M}, \sqrt{\frac{\log w}{\log\log w}}\})$.
  • Substring insertion/deletion is supported in amortized $O((y + \log N\log^* M)\log w\log N\log^* M)$ time, improving over $O((y + \sqrt{N})\log^{2+\epsilon}N)$ in prior work when $\sqrt{N}$ dominates.
  • The LZ77 factorization algorithm runs in $O(Nf(N,w') + z\log w'\log^3 N(\log^* N)^2)$ time with $O(w')$ working space, where $w' = O(z\log N\log^* N)$.
  • An LCE data structure of size $O(w)$ supports queries in $O(\log N + \log\ell\log^* N)$ time, improving on prior $O(h\log N)$-time structures.
  • The algorithm for detecting all palindromes in an SLP-compressed string runs in $O(n\log^2 N\log^* N)$ time and $O(n\log^* N + w)$ space, improving over $O(n^2 h)$ time.
  • The Lyndon factorization algorithm runs in $O(n(n + \log n\log N\log^* N))$ time and $O(n^2 + z\log N\log^* N)$ space, outperforming prior $O(nh(n + \log n\log N))$ time methods when $h$ is large.

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.