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

再论加权最短公共超序列问题

Weighted Shortest Common Supersequence Problem Revisited

Panagiotis Charalampopoulos, Tomasz Kociumaka, Solon P. Pissis, Jakub Radoszewski, Wojciech Rytter, Juliusz Straszyński, Tomasz Waleń, Wiktor Zuba

摘要:

加权字符串,也称为位置权重矩阵,是一个在某个字母表上的概率分布序列。我们重新讨论了Amir等人[SPIRE 2011]提出的加权最短公共超序列(WSCS)问题,即加权字符串上的SCS问题。在WSCS问题中,我们给出两个加权字符串$W_1$和$W_2$以及概率阈值$\mathit{Freq}$,并要求我们计算最短(标准)字符串$S$,使得$W_1$和$W_2$以至少$\mathit{Freq}$的概率匹配$S$的序列(不一定相同)。Amir等人证明,如果概率(包括阈值$\mathit{Freq}$)由它们的矩阵(以二进制编码)表示,则该问题是NP完全的。我们提出了一个算法,解决了WSCS问题的两个加权字符串的长度$n$在一个恒定大小的字母表在$\mathcal{O}(n^2\sqrt{z} \log{z})$时间。值得注意的是,我们的上限匹配已知的条件下限,说明WSCS问题不能在$\mathcal{O}(n^{2-\varepsilon})$时间或在$\mathcal{O}^*(z^{0.5-\varepsilon})$时间解决,除非有一个突破,改善长期存在的基本NP难问题的上限(CNF-SAT和子集和,分别)。我们还发现了WSCS问题和Amir等人[JDA 2010]引入的加权最长公共子序列(WLCS)问题之间的根本差异。我们表明,WLCS问题不能解决在$\mathcal{O}(n^{f(z)})$时间,任何功能$f(z)$,除非$\mathrm{P}=\mathrm{NP}$。

英文摘要:

A weighted string, also known as a position weight matrix, is a sequence of probability distributions over some alphabet. We revisit the Weighted Shortest Common Supersequence (WSCS) problem, introduced by Amir et al. [SPIRE 2011], that is, the SCS problem on weighted strings. In the WSCS problem, we are given two weighted strings $W_1$ and $W_2$ and a threshold $\mathit{Freq}$ on probability, and we are asked to compute the shortest (standard) string $S$ such that both $W_1$ and $W_2$ match subsequences of $S$ (not necessarily the same) with probability at least $\mathit{Freq}$. Amir et al. showed that this problem is NP-complete if the probabilities, including the threshold $\mathit{Freq}$, are represented by their logarithms (encoded in binary). We present an algorithm that solves the WSCS problem for two weighted strings of length $n$ over a constant-sized alphabet in $\mathcal{O}(n^2\sqrt{z} \log{z})$ time. Notably, our upper bound matches known conditional lower bounds stating that the WSCS problem cannot be solved in $\mathcal{O}(n^{2-\varepsilon})$ time or in $\mathcal{O}^*(z^{0.5-\varepsilon})$ time unless there is a breakthrough improving upon long-standing upper bounds for fundamental NP-hard problems (CNF-SAT and Subset Sum, respectively). We also discover a fundamental difference between the WSCS problem and the Weighted Longest Common Subsequence (WLCS) problem, introduced by Amir et al. [JDA 2010]. We show that the WLCS problem cannot be solved in $\mathcal{O}(n^{f(z)})$ time, for any function $f(z)$, unless $\mathrm{P}=\mathrm{NP}$.

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

↑