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

k长度子串中的最长公共子序列

Longest Common Subsequence in k-length substrings

Gary Benson, Avivit Levy, Riva Shalom

摘要:

在本文中,我们定义了一个新的问题,出于计算生物学,$LCSk$的目的是找到最大数量的$k$长度$substrings$,在两个输入字符串匹配,同时保持其出现顺序。传统的LCS定义是我们问题的一个特例,其中$k = 1$。我们提供了一个算法,解决一般情况下的$O(n^2)$时间,其中$n$是输入字符串的长度,等于所需的时间为特殊情况下的$k=1$。该算法的空间需求是$O(kn)$。%,但是,为了启用解决方案的%回溯,需要$O(n^2)$空间。我们还定义了一个互补的$EDk$距离测度,并证明了$EDk(A,B)$可以在$O(nm)$时间和$O(km)$空间中计算,其中$m$,$n$分别是输入序列$A$和$B$的长度。

英文摘要:

In this paper we define a new problem, motivated by computational biology, $LCSk$ aiming at finding the maximal number of $k$ length $substrings$, matching in both input strings while preserving their order of appearance. The traditional LCS definition is a special case of our problem, where $k = 1$. We provide an algorithm, solving the general case in $O(n^2)$ time, where $n$ is the length of the input strings, equaling the time required for the special case of $k=1$. The space requirement of the algorithm is $O(kn)$. %, however, in order to enable %backtracking of the solution, $O(n^2)$ space is needed. We also define a complementary $EDk$ distance measure and show that $EDk(A,B)$ can be computed in $O(nm)$ time and $O(km)$ space, where $m$, $n$ are the lengths of the input sequences $A$ and $B$ respectively.

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

↑