arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.05004cs.DS
收藏

通过基于增量游程长度的BWT索引在线计算最长重复后缀和最小后缀集

Online Computation of the Longest Repeating Suffix and Smallest Suffixient Sets via Incremental Run-Length BWT-based Indexes

University of Milano-Bicocca(米兰比可卡大学);University of Yamanashi(山梨大学);Gustave Eiffel University(古斯塔夫·埃菲尔大学)

Paola Bonizzoni, Younan Gao, Dominik Köppl, Gregory Kucherov

AI总结:

研究在线构建最小后缀集及计算最长重复后缀,给出最小后缀集压缩空间在线构建法,针对两问题提出时空权衡,还证明计算LRS的确定性在线算法最坏情况需Ω(n)比特峰值工作空间。

摘要:

我们重新审视了最小后缀集的在线构建和最长重复后缀(LRS)的在线计算。我们给出了最小后缀集的第一个压缩空间在线构建,并针对这两个问题提出了两种时空权衡:工作空间为O(r log n + n)比特,每个字符的最坏情况时间为O(log²n / log log n);工作空间为O(r log n + n log log n)比特,每个字符的最坏情况时间为O((log n / log log n)²)。这里,r是T[1..n]反转的Burrows-Wheeler变换中的游程数。特别是,对于满足r = O(n / log n)的高度重复文本,第一种权衡使用O(n)比特的工作空间,而第二种使用O(n log log n)比特。我们还证明,即使在固定大小字母表上,任何用于计算LRS的确定性在线算法在最坏情况下都需要Ω(n)比特的峰值工作空间。通过从在线LRS计算的归约,我们将此下界扩展到确定性在线算法,这些算法维护任意最小后缀集,并增加每个选定位置表示的超最大右扩展的长度,或通过选择每个此类扩展的最右出现位置获得的仅位置最小后缀集。对于构建最小后缀集,我们的算法是第一个使用压缩工作空间的在线解决方案,改进了先前在线构建所需的O(n)字空间。对于压缩空间在线LRS计算,与Prezza和Rosone [CiE 2020]的算法相比,我们的界限分别将每个字符的O(log²n)摊销时间提高了Θ(log log n)和Θ((log log n)²)倍,同时还提供最坏情况保证。

英文摘要:

We revisit the online construction of \emph{smallest suffixient sets} and the online computation of the \emph{longest repeating suffix} (LRS). We give the first compressed-space online construction of smallest suffixient sets, and present two space-time trade-offs for both problems: $O(r\log n+n)$ bits of working space and $O(\log^2 n/\log \log n)$ worst-case time per character, and $O(r\log n+n \log \log n)$ bits of working space and $O((\log n/\log \log n)^2)$ worst-case time per character. Here, $r$ is the number of runs in the Burrows-Wheeler transform of the reverse of $T[1..n]$. In particular, for highly repetitive texts satisfying $r=O(n/\log n)$, the first trade-off uses $O(n)$ bits of working space, while the second uses $O(n\log\log n)$ bits. We also prove that any deterministic online algorithm for computing LRS requires \(Ω(n)\) bits of peak working space in the worst case, even over a constant-size alphabet. Through reductions from online LRS computation, we extend this lower bound to deterministic online algorithms maintaining either an arbitrary smallest suffixient set augmented with the length of the supermaximal right extension represented by each selected position, or the position-only smallest suffixient set obtained by selecting the rightmost occurrence of every such extension. For constructing smallest suffixient sets, our algorithms are the first online solutions using compressed working space, improving the $O(n)$-word space required by previous online constructions. For compressed-space online LRS computation, compared with the algorithm of Prezza and Rosone~[CiE 2020], our bounds improve their $O(\log^2 n)$ amortized time per character by factors of $Θ(\log\log n)$ and $Θ((\log\log n)^2)$, respectively, while also providing worst-case guarantees.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑