A Simple Algorithm for the Constrained Sequence Problems
arXiv:2103.02919 · doi:10.1016/j.ipl.2004.02.008
Abstract
In this paper we address the constrained longest common subsequence problem. Given two sequences , and a constrained sequence , a sequence is a constrained longest common subsequence for and with respect to if is the longest subsequence of and such that is a subsequence of . Recently, Tsai \cite{Tsai} proposed an time algorithm to solve this problem using dynamic programming technique, where , and are the lengths of , and , respectively. In this paper, we present a simple algorithm to solve the constrained longest common subsequence problem in 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.
https://doi.org/10.1016/j.ipl.2004.02.008