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

多子串排除约束广义LCS问题的一个有效动态规划算法

An Efficient Dynamic Programming Algorithm for the Generalized LCS Problem with Multiple Substring Exclusion Constrains

Lei Wang, Xiaodong Wang, Yingjie Wu, Daxin Zhu

摘要:

本文考虑了一个具有多子串排除约束的广义最长公共子序列问题。对于长度为$n$和$m$的两个输入序列$X$和$Y$,以及总长度为$r$的一组$d$约束$P=\{P_1,...,P_d\}$,问题是找到$X$和$Y$的公共子序列$Z$,将$P$中的每个约束串排除为子串,并且使$Z$的长度最大化。这个问题被声明为NP难的\cite{1},但我们最终发现这不是真的。本文提出了一种新的动态规划方法。证明了新算法的正确性。算法的时间复杂度为$O(nmr)$。

英文摘要:

In this paper, we consider a generalized longest common subsequence problem with multiple substring exclusion constrains. For the two input sequences $X$ and $Y$ of lengths $n$ and $m$, and a set of $d$ constrains $P=\{P_1,...,P_d\}$ of total length $r$, the problem is to find a common subsequence $Z$ of $X$ and $Y$ excluding each of constrain string in $P$ as a substring and the length of $Z$ is maximized. The problem was declared to be NP-hard\cite{1}, but we finally found that this is not true. A new dynamic programming solution for this problem is presented in this paper. The correctness of the new algorithm is proved. The time complexity of our algorithm is $O(nmr)$.

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

↑