English

An efficient dynamic programming algorithm for the generalized LCS problem with multiple substring inclusive constraints

Data Structures and Algorithms 2015-05-26 v1

Abstract

In this paper, we consider a generalized longest common subsequence problem with multiple substring inclusive constraints. For the two input sequences XX and YY of lengths nn and mm, and a set of dd constraints P={P1,,Pd}P=\{P_1,\cdots,P_d\} of total length rr, the problem is to find a common subsequence ZZ of XX and YY including each of constraint string in PP as a substring and the length of ZZ is maximized. A new dynamic programming solution to this problem is presented in this paper. The correctness of the new algorithm is proved. The time complexity of our algorithm is O(d2dnmr)O(d2^dnmr). In the case of the number of constraint strings is fixed, our new algorithm for the generalized longest common subsequence problem with multiple substring inclusive constraints requires O(nmr)O(nmr) time and space.

Keywords

Cite

@article{arxiv.1505.06529,
  title  = {An efficient dynamic programming algorithm for the generalized LCS problem with multiple substring inclusive constraints},
  author = {Daxin Zhu and Lei Wang and Yingjie Wu and Xiaodong Wang},
  journal= {arXiv preprint arXiv:1505.06529},
  year   = {2015}
}

Comments

arXiv admin note: substantial text overlap with arXiv:1303.1872

R2 v1 2026-06-22T09:40:37.214Z