paper

Faster STR-EC-LCS Computation

arXiv:2001.05671

Abstract

The longest common subsequence (LCS) problem is a central problem in stringology that finds the longest common subsequence of given two strings and . More recently, a set of four constrained LCS problems (called generalized constrained LCS problem) were proposed by Chen and Chao [J. Comb. Optim, 2011]. In this paper, we consider the substring-excluding constrained LCS (STR-EC-LCS) problem. A string is said to be an STR-EC-LCS of two given strings and excluding if, is one of the longest common subsequences of and that does not contain as a substring. Wang et al. proposed a dynamic programming solution which computes an STR-EC-LCS in time and space where [Inf. Process. Lett., 2013]. In this paper, we show a new solution for the STR-EC-LCS problem. Our algorithm computes an STR-EC-LCS in time where denotes the set of distinct characters occurring in both and , and is the length of the STR-EC-LCS. This algorithm is faster than the -time algorithm for short/long STR-EC-LCS (namely, or ), and is at least as efficient as the -time algorithm for all cases.

References in corpus (1)

Faster STR-EC-LCS Computation · wovepaper