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

具有k个不匹配的最长公共子串

Longest common substrings with k mismatches

Tomas Flouri, Emanuele Giaquinta, Kassian Kobert, Esko Ukkonen

摘要:

具有$k$ -不匹配的最长公共子串问题是在给定两个串$S_1$和$S_2$的情况下,找到$S_1$的最长子串$A_1$和$S_2$的最长子串$A_2$,使得$A_1$和$A_2$之间的汉明距离为$\le k$。本文提出了一种实用的$O(nm)$时间和$O(1)$空间解,其中$n$和$m$分别是$S_1$和$S_2$的长度.该算法还可用于计算$k$ --$S_1$和$S_2$在$O(nm)$时间和$O(m)$空间上的失配的匹配统计量。此外,我们还提出了一个理论的解决方案$k = 1$的情况下,运行在$O(n \log m)$时间,假设$m\le n$,并使用$O(m)$空间,改善了现有的$O(nm)$时间和$O(m)$空间界的巴边科和Starikovskaya。

英文摘要:

The longest common substring with $k$-mismatches problem is to find, given two strings $S_1$ and $S_2$, 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 $\le k$. We introduce a practical $O(nm)$ time and $O(1)$ space solution for this problem, where $n$ and $m$ are the lengths of $S_1$ and $S_2$, respectively. This algorithm can also be used to compute the matching statistics with $k$-mismatches of $S_1$ and $S_2$ in $O(nm)$ time and $O(m)$ space. Moreover, we also present a theoretical solution for the $k = 1$ case which runs in $O(n \log m)$ time, assuming $m\le n$, and uses $O(m)$ space, improving over the existing $O(nm)$ time and $O(m)$ space bound of Babenko and Starikovskaya.

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

↑