Copyright © 2007 Elsevier B.V. All rights reserved.
Received 16 May 2007;
revised 18 September 2007;
accepted 18 September 2007.
Communicated by L.A. Hemaspaandra.
Available online 21 September 2007.
References and further reading may be available for this article. To view references and further reading you must purchase this article.
Abstract
In this paper, we study the classic and well-studied longest common subsequence (LCS) problem and a recent variant of it, namely the constrained LCS (CLCS) problem. In the CLCS problem, the computed LCS must also be a supersequence of a third given string. In this paper, we first present an efficient algorithm for the traditional LCS problem that runs in time, where
is the total number of ordered pairs of positions at which the two strings match and n is the length of the two given strings. Then, using this algorithm, we devise an algorithm for the CLCS problem having time complexity
in the worst case, where p is the length of the third string.
Keywords: Algorithms; Combinatorial problems; Longest common subsequence







E-mail Article
Add to my Quick Links

Cited By in Scopus (0)







