Efficient algorithms for the longest common subsequence problem with sequential substring constraints

  • Authors:
  • Chiou-Ting Tseng;Chang-Biau Yang;Hsing-Yen Ann

  • Affiliations:
  • Department of Computer Science and Engineering, National Sun Yat-Sen University, Kaohsiung 80424, Taiwan;Department of Computer Science and Engineering, National Sun Yat-Sen University, Kaohsiung 80424, Taiwan;National Center for High-Performance Computing, Tainan 74147, Taiwan

  • Venue:
  • Journal of Complexity
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we generalize the inclusion constrained longest common subsequence (CLCS) problem to the hybrid CLCS problem which is the combination of the sequence inclusion CLCS and the string inclusion CLCS, called the sequential substring constrained longest common subsequence (SSCLCS) problem. In the SSCLCS problem, we are given two strings A and B of lengths m and n, respectively, formed by alphabet @S and a constraint sequence C formed by ordered strings (C^1,C^2,C^3,...,C^l) with total length r. The problem is that of finding the longest common subsequence D of A and B containing C^1,C^2,C^3,...,C^l as substrings and with the order of the C's retained. This problem has two variants, depending on whether the strings in C cannot overlap or may overlap. We propose algorithms with O(mnl+(m+n)(|@S|+r)) and O(mnr+(m+n)|@S|) time for the two variants. For the special case with one or two constraints, our algorithm runs in O(mn+(m+n)(|@S|+r)) or O(mnr+(m+n)|@S|) time, respectively-an order faster than the algorithm proposed by Chen and Chao.