English

Relating Left and Right Extensions of Maximal Repeats

Data Structures and Algorithms 2024-10-22 v1

Abstract

The compact directed acyclic word graph (CDAWG) of a string TT is an index occupying O(e)O(\mathsf{e}) space, where e\mathsf{e} is the number of right extensions of maximal repeats in TT. For highly repetitive datasets, the measure e\mathsf{e} typically is small compared to the length nn of TT and, thus, the CDAWG serves as a compressed index. Unlike other compressibility measures (as LZ77, string attractors, BWT runs, etc.), e\mathsf{e} is very unstable with respect to reversals: the CDAWG of the reversed string T=T[n]T[2]T[1]\overset{{}_{\leftarrow}}{T} = T[n] \cdots T[2] T[1] has size O(e)O(\overset{{}_{\leftarrow}}{\mathsf{e}}), where e\overset{{}_{\leftarrow}}{\mathsf{e}} is the number of left extensions of maximal repeats in TT, and there are strings TT with eeΩ(n)\frac{\overset{{}_{\leftarrow}}{\mathsf{e}}}{\mathsf{e}} \in \Omega(\sqrt{n}). In this note, we prove that this lower bound is tight: eeO(n)\frac{\overset{{}_{\leftarrow}}{\mathsf{e}}}{\mathsf{e}} \in O(\sqrt{n}). Furthermore, given the alphabet size σ\sigma, we establish the alphabet-dependent bound eemin{2nσ,σ}\frac{\overset{{}_{\leftarrow}}{\mathsf{e}}}{\mathsf{e}} \le \min\{\frac{2n}{\sigma}, \sigma\} and we show that it is asymptotically tight.

Keywords

Cite

@article{arxiv.2410.15958,
  title  = {Relating Left and Right Extensions of Maximal Repeats},
  author = {Shunsuke Inenaga and Dmitry Kosolobov},
  journal= {arXiv preprint arXiv:2410.15958},
  year   = {2024}
}

Comments

4 pages