English

Linear-size CDAWG: new repetition-aware indexing and grammar compression

Data Structures and Algorithms 2017-07-28 v2

Abstract

In this paper, we propose a novel approach to combine \emph{compact directed acyclic word graphs} (CDAWGs) and grammar-based compression. This leads us to an efficient self-index, called Linear-size CDAWGs (L-CDAWGs), which can be represented with O(e~Tlogn)O(\tilde e_T \log n) bits of space allowing for O(logn)O(\log n)-time random and O(1)O(1)-time sequential accesses to edge labels, and O(mlogσ+occ)O(m \log \sigma + occ)-time pattern matching. Here, e~T\tilde e_T is the number of all extensions of maximal repeats in TT, nn and mm are respectively the lengths of the text TT and a given pattern, σ\sigma is the alphabet size, and occocc is the number of occurrences of the pattern in TT. The repetitiveness measure e~T\tilde e_T is known to be much smaller than the text length nn for highly repetitive text. For constant alphabets, our L-CDAWGs achieve O(m+occ)O(m + occ) pattern matching time with O(eTrlogn)O(e_T^r \log n) bits of space, which improves the pattern matching time of Belazzougui et al.'s run-length BWT-CDAWGs by a factor of loglogn\log \log n, with the same space complexity. Here, eTre_T^r is the number of right extensions of maximal repeats in TT. As a byproduct, our result gives a way of constructing an SLP of size O(e~T)O(\tilde e_T) for a given text TT in O(n+e~Tlogσ)O(n + \tilde e_T \log \sigma) time.

Keywords

Cite

@article{arxiv.1705.09779,
  title  = {Linear-size CDAWG: new repetition-aware indexing and grammar compression},
  author = {Takuya Takagi and Keisuke Goto and Yuta Fujishige and Shunsuke Inenaga and Hiroki Arimura},
  journal= {arXiv preprint arXiv:1705.09779},
  year   = {2017}
}

Comments

12 pages, 2 figures