计算机科学 > 数据结构与算法
[提交于 2014年2月10日]
标题:Longest Common Subsequence in k-length substrings
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Avivit Levy[v1] 2014年2月10日 星期一 10:54:52 UTC