我们重新审视了最小后缀集的在线构建和最长重复后缀(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.
DAIS, Ca’ Foscari University of Venice(威尼斯卡福斯卡里大学);Centre for Biotechnology and Bioengineering, Chile(智利生物技术与生物工程中心);Department of Computer Science, University of Chile(智利大学计算机系)
Computing Smallest Suffixient Arrays in Sublinear Time
Kyushu University(九州大学);University of Chile(智利大学);Center for Biotechnology and Bioengineering (CeBiB)(生物技术与生物工程中心);University of Warsaw(华沙大学);University of Palermo(巴勒莫大学)
Smallest Suffixient Sets: Effectiveness, Resilience, and Calculation
Kyushu University(九州大学);University of Chile(智利大学);Center for Biotechnology and Bioengineering (CeBiB)(生物技术与生物工程中心);University of Palermo(巴勒莫大学);University of Warsaw(华沙大学)
An Optimal-Time RLBWT Construction in BWT-runs Bounded Space
高度重复的字符串的压缩(即,具有许多重复的字符串)一直是字符串处理中的中心研究课题,并且迄今为止已经提出了针对这些字符串的相当多的压缩方法。其中,一种有效的压缩格式越来越受到关注的是游程Burrows-Wheeler变换(RLBWT),它是一种游程编码的BWT,作为输入字符串在后缀的字典顺序上的可逆置换。最先进的RLBWT构造算法在以下方面存在严重问题:(i)非最优计算时间或(ii)与输入字符串长度成线性比例的工作空间。本文提出了有界游程空间中RLBWT的第一个最优时间构造算法\emph{r-comp}。也就是说,对于输入串的长度$n$和BWT中的等字母游程的数目$r$,r-comp的计算复杂性是$O(n + r \log{r})$时间和工作空间的$O(r\log{n})$位。计算时间是最佳的(即,$O(n)$),用于具有属性$r=O(n/\log{n})$的字符串,该属性适用于大多数高度重复的字符串。使用真实世界的数据集的高度重复的字符串的实验表明,相对于计算时间和空间的有效性。