English

Tight bounds for the sensitivity of CDAWGs with left-end edits

Data Structures and Algorithms 2025-01-28 v5

Abstract

Compact directed acyclic word graphs (CDAWGs) [Blumer et al. 1987] are a fundamental data structure on strings with applications in text pattern searching, data compression, and pattern discovery. Intuitively, the CDAWG of a string TT is obtained by merging isomorphic subtrees of the suffix tree [Weiner 1973] of the same string TT, thus CDAWGs are a compact indexing structure. In this paper, we investigate the sensitivity of CDAWGs when a single character edit operation (insertion, deletion, or substitution) is performed at the left-end of the input string TT, namely, we are interested in the worst-case increase in the size of the CDAWG after a left-end edit operation. We prove that if ee is the number of edges of the CDAWG for string TT, then the number of new edges added to the CDAWG after a left-end edit operation on TT does not exceed ee. Further, we present a matching lower bound on the sensitivity of CDAWGs for left-end insertions, and almost matching lower bounds for left-end deletions and substitutions. We then generalize our lower-bound instance for left-end insertions to leftward online construction of the CDAWG, and show that it requires Ω(n2)\Omega(n^2) time for some string of length nn.

Keywords

Cite

@article{arxiv.2303.01726,
  title  = {Tight bounds for the sensitivity of CDAWGs with left-end edits},
  author = {Hiroto Fujimaru and Yuto Nakashima and Shunsuke Inenaga},
  journal= {arXiv preprint arXiv:2303.01726},
  year   = {2025}
}

Comments

This is a full version of the paper that appeared in the proceedings of WORDS 2023. Accepted for Acta Informatica