English

Minimal Unique Substrings and Minimal Absent Words in a Sliding Window

Data Structures and Algorithms 2019-09-16 v2

Abstract

A substring uu of a string TT is called a minimal unique substring (MUS) of TT if uu occurs exactly once in TT and any proper substring of uu occurs at least twice in TT. A string ww is called a minimal absent word (MAW) of TT if ww does not occur in TT and any proper substring of ww occurs in TT. In this paper, we study the problems of computing MUSs and MAWs in a sliding window over a given string TT. We first show how the set of MUSs can change in a sliding window over TT, and present an O(nlogσ)O(n\log\sigma)-time and O(d)O(d)-space algorithm to compute MUSs in a sliding window of width dd over TT, where σ\sigma is the maximum number of distinct characters in every window. We then give tight upper and lower bounds on the maximum number of changes in the set of MAWs in a sliding window over TT. Our bounds improve on the previous results in [Crochemore et al., 2017].

Keywords

Cite

@article{arxiv.1909.02804,
  title  = {Minimal Unique Substrings and Minimal Absent Words in a Sliding Window},
  author = {Takuya Mieno and Yuki Kuhara and Tooru Akagi and Yuta Fujishige and Yuto Nakashima and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda},
  journal= {arXiv preprint arXiv:1909.02804},
  year   = {2019}
}
R2 v1 2026-06-23T11:07:34.457Z