Minimal Unique Substrings and Minimal Absent Words in a Sliding Window
Abstract
A substring of a string is called a minimal unique substring (MUS) of if occurs exactly once in and any proper substring of occurs at least twice in . A string is called a minimal absent word (MAW) of if does not occur in and any proper substring of occurs in . In this paper, we study the problems of computing MUSs and MAWs in a sliding window over a given string . We first show how the set of MUSs can change in a sliding window over , and present an -time and -space algorithm to compute MUSs in a sliding window of width over , where 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 . 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}
}