Longest (k]-Tuple Common Substrings
摘要
A (k]-tuple common substring (abbr. (k]-CSS) is a common subsequence of two or more given strings including at most k common substrings. The complexity of finding a longest (k]-CSS of 2 strings is still open. We present a dynamic programming algorithm for finding a longest (k]-CSS of two strings in \(O(kn_1n_2)\) time and space where \(n_1\) and \(n_2\) are the given string lengths. To breakthrough the quadratic space complexity, we present an algorithm for finding a longest (k]-CSS in \(O(kn_1n_2)\) time and \(O(n_1+kn_2)\) space.