English

An Efficient Dynamic Programming Algorithm for the Generalized LCS Problem with Multiple Substring Exclusion Constrains

Data Structures and Algorithms 2013-03-11 v1

Abstract

In this paper, we consider a generalized longest common subsequence problem with multiple substring exclusion constrains. For the two input sequences XX and YY of lengths nn and mm, and a set of dd constrains P={P1,...,Pd}P=\{P_1,...,P_d\} of total length rr, the problem is to find a common subsequence ZZ of XX and YY excluding each of constrain string in PP as a substring and the length of ZZ is maximized. The problem was declared to be NP-hard\cite{1}, but we finally found that this is not true. A new dynamic programming solution for this problem is presented in this paper. The correctness of the new algorithm is proved. The time complexity of our algorithm is O(nmr)O(nmr).

Keywords

Cite

@article{arxiv.1303.1872,
  title  = {An Efficient Dynamic Programming Algorithm for the Generalized LCS Problem with Multiple Substring Exclusion Constrains},
  author = {Lei Wang and Xiaodong Wang and Yingjie Wu and Daxin Zhu},
  journal= {arXiv preprint arXiv:1303.1872},
  year   = {2013}
}

Comments

arXiv admin note: substantial text overlap with arXiv:1301.7183

R2 v1 2026-06-21T23:38:34.094Z