Bounds on the Complexity of the Longest Common Subsequence Problem
Journal of the ACM (JACM)
Algorithms for the Longest Common Subsequence Problem
Journal of the ACM (JACM)
The Complexity of Some Problems on Subsequences and Supersequences
Journal of the ACM (JACM)
A linear space algorithm for computing maximal common subsequences
Communications of the ACM
A Survey of Longest Common Subsequence Algorithms
SPIRE '00 Proceedings of the Seventh International Symposium on String Processing Information Retrieval (SPIRE'00)
The constrained longest common subsequence problem
Information Processing Letters
A simple algorithm for the constrained sequence problems
Information Processing Letters
SPIRE'07 Proceedings of the 14th international conference on String processing and information retrieval
Variants of constrained longest common subsequence
Information Processing Letters
SPIRE'10 Proceedings of the 17th international conference on String processing and information retrieval
On the generalized constrained longest common subsequence problems
Journal of Combinatorial Optimization
Approximability of constrained LCS
Journal of Computer and System Sciences
Hi-index | 0.00 |
The problem of finding the longest common subsequence (LCS) of two given strings A1and A2is a well-studied problem. The constrained longest common subsequence (C-LCS) for three strings A1, A2and B1is the longest common subsequence of A1and A2that contains B1as a subsequence. The fastest algorithm solving the C-LCS problem has a time complexity of O(m1m2n1) where m1, m2and n1are the lengths of A1, A2and B1respectively. In this paper we consider two general variants of the C-LCS problem. First we show that in case of two input strings and an arbitrary number of constraint strings, it is NP-hard to approximate the C-LCS problem. Moreover, it is easy to see that in case of an arbitrary number of input strings and a single constraint, the problem of finding the constrained longest common subsequence is NP-hard. Therefore, we propose a linear time approximation algorithm for this variant, our algorithm yields a $1 / \sqrt{m_{min}|\Sigma|}$ approximation factor, where mminis the length of the shortest input string and |Σ| is the size of the alphabet.