arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2006.00216cs.DS
收藏

再论最长平方子序列问题

Longest Square Subsequence Problem Revisited

Takafumi Inoue, Shunsuke Inenaga, Hideo Bannai

摘要:

最长平方子序列(LSS)问题包括计算给定字符串$S$的最长子序列,该字符串是正方形,即,出现在$S$中的形式$XX$的最长子序列。众所周知,长度为$n$的字符串$S$的LSS可以使用$O(n^2)$时间[Kosowski 2004]计算,或者使用$O(n^2 (\log \log n)^2 / \log^2 n)$时间[Tiskin 2013]进行(依赖于模型的)多对数加速。我们提出了第一个算法的LSS的运行时间取决于其他参数,即,我们证明了$S$的LSS可以在$O(r \min\{n, M\}\log \frac{n}{r} + n + M \log n)$时间和$O(M)$空间中计算,其中$r$是$S$的LSS的长度,$M$是$S$上的匹配点的数量。

英文摘要:

The longest square subsequence (LSS) problem consists of computing a longest subsequence of a given string $S$ that is a square, i.e., a longest subsequence of form $XX$ appearing in $S$. It is known that an LSS of a string $S$ of length $n$ can be computed using $O(n^2)$ time [Kosowski 2004], or with (model-dependent) polylogarithmic speed-ups using $O(n^2 (\log \log n)^2 / \log^2 n)$ time [Tiskin 2013]. We present the first algorithm for LSS whose running time depends on other parameters, i.e., we show that an LSS of $S$ can be computed in $O(r \min\{n, M\}\log \frac{n}{r} + n + M \log n)$ time with $O(M)$ space, where $r$ is the length of an LSS of $S$ and $M$ is the number of matching points on $S$.

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

↑