Minimal unique substrings and minimal absent words in a sliding window
Minimal unique substrings and minimal absent words in a sliding window
复制标题
滑动窗口中最少的唯一子串和最少的缺失单词
DOI:
10.1007/978-3-030-38919-2_13
复制
发表时间:
2019
期刊:
影响因子:
--
通讯作者:
Masayuki Takeda
中科院分区:
文献类型:
--
作者:
Takuya Mieno;Yuki Kuhara;Tooru Akagi;Yuta Fujishige;Yuto Nakashima;Shunsuke Inenaga;Hideo Bannai;Masayuki Takeda
A substringuof a stringTis called a minimal unique substring (MUS) ofTifuoccurs exactly once inTand any proper substring ofuoccurs at least twice inT. A stringwis called a minimal absent word (MAW) ofTifwdoes not occur inTand any proper substring ofwoccurs inT. In this paper, we study the problems of computing MUSs and MAWs in a sliding window over a given stringT. We first show how the set of MUSs can change in a sliding window overT, and present an-time andO(d)-space algorithm to compute MUSs in a sliding window of widthdoverT, whereis 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 overT. Our bounds improve on the previous results in Crochemore et al. (2017).