English

Computing Minimal Absent Words and Extended Bispecial Factors with CDAWG Space

Data Structures and Algorithms 2024-05-21 v3 Formal Languages and Automata Theory

Abstract

A string ww is said to be a minimal absent word (MAW) for a string SS if ww does not occur in SS and any proper substring of ww occurs in SS. We focus on non-trivial MAWs which are of length at least 2. Finding such non-trivial MAWs for a given string is motivated for applications in bioinformatics and data compression. Fujishige et al. [TCS 2023] proposed a data structure of size Θ(n)\Theta(n) that can output the set MAW(S)\mathsf{MAW}(S) of all MAWs for a given string SS of length nn in O(n+MAW(S))O(n + |\mathsf{MAW}(S)|) time, based on the directed acyclic word graph (DAWG). In this paper, we present a more space efficient data structure based on the compact DAWG (CDAWG), which can output MAW(S)\mathsf{MAW}(S) in O(MAW(S))O(|\mathsf{MAW}(S)|) time with O(\mathsf{e}_\min) space, where \mathsf{e}_\min denotes the minimum of the sizes of the CDAWGs for SS and for its reversal SRS^R. For any strings of length nn, it holds that \mathsf{e}_\min < 2n, and for highly repetitive strings \mathsf{e}_\min can be sublinear (up to logarithmic) in nn. We also show that MAWs and their generalization minimal rare words have close relationships with extended bispecial factors, via the CDAWG.

Keywords

Cite

@article{arxiv.2402.18090,
  title  = {Computing Minimal Absent Words and Extended Bispecial Factors with CDAWG Space},
  author = {Shunsuke Inenaga and Takuya Mieno and Hiroki Arimura and Mitsuru Funakoshi and Yuta Fujishige},
  journal= {arXiv preprint arXiv:2402.18090},
  year   = {2024}
}

Comments

Accepted for IWOCA 2024