English

A Simple Algorithm for the Constrained Sequence Problems

Data Structures and Algorithms 2021-03-05 v1

Abstract

In this paper we address the constrained longest common subsequence problem. Given two sequences XX, YY and a constrained sequence PP, a sequence ZZ is a constrained longest common subsequence for XX and YY with respect to PP if ZZ is the longest subsequence of XX and YY such that PP is a subsequence of ZZ. Recently, Tsai \cite{Tsai} proposed an O(n2m2r)O(n^2 \cdot m^2 \cdot r) time algorithm to solve this problem using dynamic programming technique, where nn, mm and rr are the lengths of XX, YY and PP, respectively. In this paper, we present a simple algorithm to solve the constrained longest common subsequence problem in O(nmr)O(n \cdot m \cdot r) time and show that the constrained longest common subsequence problem is equivalent to a special case of the constrained multiple sequence alignment problem which can also be solved.

Keywords

Cite

@article{arxiv.2103.02919,
  title  = {A Simple Algorithm for the Constrained Sequence Problems},
  author = {Francis Yuk Lun Chin and Ngai Lam Ho and Alfredo De Santis and S. K. Kim},
  journal= {arXiv preprint arXiv:2103.02919},
  year   = {2021}
}

Comments

https://doi.org/10.1016/j.ipl.2004.02.008