Space-efficient algorithms for computing minimal/shortest unique substrings
Space-efficient algorithms for computing minimal/shortest unique substrings
复制标题
DOI:
10.1016/j.tcs.2020.09.017
复制
发表时间:
2020-09
期刊:
影响因子:
--
通讯作者:
Takuya Mieno;D. Köppl;Yuto Nakashima;Shunsuke Inenaga;H. Bannai;M. Takeda
中科院分区:
文献类型:
--
作者:
Takuya Mieno;D. Köppl;Yuto Nakashima;Shunsuke Inenaga;H. Bannai;M. Takeda
Given a string T of length n, a substring u= T [i.. j] of T is called a shortest unique substring (SUS) for an interval [s, t] if (a) u occurs exactly once in T,(b) u contains the interval [s, t](ie i≤ s≤ t≤ j), and (c) every substring v of T with| v|<| u| containing [s, t] occurs at least twice in T. Given a query interval [s, t]⊂[1, n], the interval SUS problem is to output all the SUSs for the interval [s, t]. In this article, we propose a 4 n+ o (n) bits data structure answering an interval SUS query in output-sensitive O (o c c) time, where occ is the number of returned SUSs. Additionally, we focus on the point SUS problem, which is the interval SUS problem for s= t. Here, we propose a⌈(log 2 3+ 1) n⌉+ o (n) bits data structure answering a point SUS query in the same output-sensitive time. We also propose space-efficient algorithms for computing the minimal unique substrings of T.