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

关于最长公共子串与$k$ -不匹配问题的注记

A note on the longest common substring with $k$-mismatches problem

Szymon Grabowski

摘要:

最近引入的具有$k$ -错配的最长公共子串($k$-LCF)问题是在给定长度均为$n$的两个序列$S_1$和$S_2$的情况下,找到$S_1$的最长子串$A_1$和$S_2$的最长子串$A_2$,使得$A_1$和$A_2$之间的汉明距离至多为$k$。到目前为止,这个问题的唯一次二次时间结果是已知的$k = 1$ ~ \cite{FGKU2014}。我们首先提出了两个依赖于输出的算法解决$k$ -LCF问题,并表明,对于$k = O(\log^{1-\varepsilon} n)$,其中$\varepsilon > 0$,至少有一个工作在次二次时间,使用$O(n)$字的空间。在线性时间和空间预处理之后,可以选择这两种算法之一来应用于给定的输入。最后,我们提出了一个基于表格的算法工作,在其适用范围内,在$O(n^2\log\min(k+\ell_0, σ)/\log n)$时间,其中$\ell_0$是标准的最长公共子串的长度。

英文摘要:

The recently introduced longest common substring with $k$-mismatches ($k$-LCF) problem is to find, given two sequences $S_1$ and $S_2$ of length $n$ each, a longest substring $A_1$ of $S_1$ and $A_2$ of $S_2$ such that the Hamming distance between $A_1$ and $A_2$ is at most $k$. So far, the only subquadratic time result for this problem was known for $k = 1$~\cite{FGKU2014}. We first present two output-dependent algorithms solving the $k$-LCF problem and show that for $k = O(\log^{1-\varepsilon} n)$, where $\varepsilon > 0$, at least one of them works in subquadratic time, using $O(n)$ words of space. The choice of one of these two algorithms to be applied for a given input can be done after linear time and space preprocessing. Finally we present a tabulation-based algorithm working, in its range of applicability, in $O(n^2\log\min(k+\ell_0, σ)/\log n)$ time, where $\ell_0$ is the length of the standard longest common substring.

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

↑