In this paper, we consider a generalized longest common subsequence problem with multiple substring inclusive constraints. For the two input sequences and of lengths and , and a set of constraints of total length , the problem is to find a common subsequence of and including each of constraint string in as a substring and the length of is maximized. A new dynamic programming solution to this problem is presented in this paper. The correctness of the new algorithm is proved. The time complexity of our algorithm is . In the case of the number of constraint strings is fixed, our new algorithm for the generalized longest common subsequence problem with multiple substring inclusive constraints requires time and space.

生成讲解博客的中文版本

生成AI智能校验的中文版本