arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1506.00063cs.DS
收藏

求解STR-IC-SEQ-EC-LCS问题的一个有效动态规划算法

An Efficient Dynamic Programming Algorithm for STR-IC-SEQ-EC-LCS Problem

Daxin Zhu, Lei Wang, Yingjie Wu, Xiaodong Wang

摘要:

本文考虑了一个广义最长公共子序列问题,其中长度为$s$的约束序列必须作为两个主序列的子串被包含,长度为$t$的约束序列必须作为两个主序列的子串被排除,且结果的长度必须是最大的.对于长度分别为$n$和$m$的两个输入序列$X$和$Y$,以及给定的长度分别为$s$和$t$的两个约束序列,我们给出了求解新的广义最长公共子序列问题的$O(nmst)$时间动态规划算法.在更详细的分析中,时间复杂度可以进一步降低到立方时间。证明了新算法的正确性。

英文摘要:

In this paper, we consider a generalized longest common subsequence problem, in which a constraining sequence of length $s$ must be included as a substring and the other constraining sequence of length $t$ must be excluded as a subsequence of two main sequences and the length of the result must be maximal. For the two input sequences $X$ and $Y$ of lengths $n$ and $m$, and the given two constraining sequences of length $s$ and $t$, we present an $O(nmst)$ time dynamic programming algorithm for solving the new generalized longest common subsequence problem. The time complexity can be reduced further to cubic time in a more detailed analysis. The correctness of the new algorithm is proved.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑