arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1803.00938cs.CCcs.DS
收藏

最长公共子序列的多维细粒度复杂度

Multivariate Fine-Grained Complexity of Longest Common Subsequence

Karl Bringmann, Marvin Künnemann

摘要:

我们重温了经典的组合模式匹配问题,找到一个最长的共同子序列(LCS)。对于长度为$n$的字符串$x$和$y$,教科书算法在时间$O(n^2)$中求解LCS,但是尽管已经花费了很多努力,但是没有$O(n^{2-\varepsilon})$时间算法是已知的。最近的工作确实表明,这样的算法将反驳强指数时间假设(SETH)[Abboud,Backurs,Vassilevska Williams + Bringmann,Künnemann FOCS'15]。尽管有二次时间的障碍,但40多年来,一个持久的科学兴趣继续为LCS及其变体产生快速算法。特别注意的是识别和利用输入参数,产生强次二次时间算法的特殊情况下的利益,例如,差异文件比较。这条研究路线一直成功地进行到1990年,当时重大的改进停止了。在本文中,使用细粒度复杂性的镜头,我们的目标是(1)证明缺乏进一步的改进和(2)确定是否LCS的某些特殊情况下承认比目前已知的更快的算法。为此,我们对LCS的多变量复杂性进行了系统的研究,并考虑了文献中先前讨论的所有参数:输入大小$n:=\max\{|x|,|y|\}$,较短字符串$m:=\min\{|x|,|y|\}$的长度,$x$和$y$的LCS的长度$L$,删除数$δ:= m-L$和$Δ:= n-L$,字母表大小,以及匹配对$M$和显性对$d$的数量。对于任何一类的实例,通过固定每个参数单独的输入大小的多项式定义,我们证明了一个基于SETH的下界匹配的三个已知的算法之一。具体地说,我们确定的最佳运行时间为LCS下SETH为$(n+\min\{d, δΔ, δm\})^{1\pm o(1)}$。[...]

英文摘要:

We revisit the classic combinatorial pattern matching problem of finding a longest common subsequence (LCS). For strings $x$ and $y$ of length $n$, a textbook algorithm solves LCS in time $O(n^2)$, but although much effort has been spent, no $O(n^{2-\varepsilon})$-time algorithm is known. Recent work indeed shows that such an algorithm would refute the Strong Exponential Time Hypothesis (SETH) [Abboud, Backurs, Vassilevska Williams + Bringmann, Künnemann FOCS'15]. Despite the quadratic-time barrier, for over 40 years an enduring scientific interest continued to produce fast algorithms for LCS and its variations. Particular attention was put into identifying and exploiting input parameters that yield strongly subquadratic time algorithms for special cases of interest, e.g., differential file comparison. This line of research was successfully pursued until 1990, at which time significant improvements came to a halt. In this paper, using the lens of fine-grained complexity, our goal is to (1) justify the lack of further improvements and (2) determine whether some special cases of LCS admit faster algorithms than currently known. To this end, we provide a systematic study of the multivariate complexity of LCS, taking into account all parameters previously discussed in the literature: the input size $n:=\max\{|x|,|y|\}$, the length of the shorter string $m:=\min\{|x|,|y|\}$, the length $L$ of an LCS of $x$ and $y$, the numbers of deletions $δ:= m-L$ and $Δ:= n-L$, the alphabet size, as well as the numbers of matching pairs $M$ and dominant pairs $d$. For any class of instances defined by fixing each parameter individually to a polynomial in terms of the input size, we prove a SETH-based lower bound matching one of three known algorithms. Specifically, we determine the optimal running time for LCS under SETH as $(n+\min\{d, δΔ, δm\})^{1\pm o(1)}$. [...]

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

↑