Minimal Unique Substrings and Minimal Absent Words in a Sliding Window
arXiv:1909.02804
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].