English

Linear-time computation of generalized minimal absent words for multiple strings

Data Structures and Algorithms 2023-08-01 v2

Abstract

A string ww is called a minimal absent word (MAW) for a string SS if ww does not occur as a substring in SS and all proper substrings of ww occur in SS. MAWs are well-studied combinatorial string objects that have potential applications in areas including bioinformatics, musicology, and data compression. In this paper, we generalize the notion of MAWs to a set S={S1,,Sk}\mathcal{S} = \{S_1, \ldots, S_k\} of multiple strings. We first describe our solution to the case of k=2k = 2 strings, and show how to compute the set M\mathsf{M} of MAWs in optimal O(n+M)O(n + |\mathsf{M}|) time and with O(n)O(n) working space, where nn denotes the total length of the strings in S\mathcal{S}. We then move on to the general case of k>2k > 2 strings, and show how to compute the set M\mathsf{M} of MAWs in O(nk/logn+M)O(n \lceil k / \log n \rceil + |\mathsf{M}|) time and with O(n(k+logn))O(n (k + \log n)) bits of working space, in the word RAM model with machine word size ω=logn\omega = \log n. The latter algorithm runs in optimal O(n+M)O(n + |\mathsf{M}|) time for k=O(logn)k = O(\log n).

Keywords

Cite

@article{arxiv.2307.01967,
  title  = {Linear-time computation of generalized minimal absent words for multiple strings},
  author = {Kouta Okabe and Takuya Mieno and Yuto Nakashima and Shunsuke Inenaga and Hideo Bannai},
  journal= {arXiv preprint arXiv:2307.01967},
  year   = {2023}
}

Comments

Accepted for SPIRE 2023

R2 v1 2026-06-28T11:22:15.869Z