English

Longest Common Subsequence in k-length substrings

Data Structures and Algorithms 2014-02-11 v1

Abstract

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

Keywords

Cite

@article{arxiv.1402.2097,
  title  = {Longest Common Subsequence in k-length substrings},
  author = {Gary Benson and Avivit Levy and Riva Shalom},
  journal= {arXiv preprint arXiv:1402.2097},
  year   = {2014}
}
R2 v1 2026-06-22T03:04:41.355Z