arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.16660cs.DScs.DMmath.CO
收藏

在几乎线性时间内逼近二元最长公共子序列

Approximating binary longest common subsequence in almost-linear time

Xiaoyu He, Ray Li

摘要:

最长公共子序列(LCS)是一个基本的字符串相似性度量,计算两个字符串的LCS是一个经典的算法问题。教科书上的动态规划算法给出了二次时间的精确算法,这在合理的细粒度复杂性假设下基本上是最好的,所以一个自然的问题是找到更快的近似算法。当输入是两个二进制字符串时,在线性时间中有一个简单的$\frac{1}{2}$近似:计算最长的公共全0或全1子序列。即使在真正的次二次时间中,是否有可能得到更好的近似值,这一点一直是开放的。Rubinstein和Song证明,在两个输入字符串长度相等的假设下,答案是肯定的。我们解决这个问题,推广他们的结果不等长的字符串,证明,对于任何$\varepsilon>0$,存在$δ>0$和$(\frac{1}{2}+δ)$ -近似算法的二进制LCS运行在$n^{1+\varepsilon}$时间。作为我们的结果和Akmal和Vassilevska-Williams的结果的结果,对于任何$\varepsilon>0$,存在在$n^{1+\varepsilon}$时间上的$q$ -ary字符串上LCS的$(\frac{1}{q}+δ)$ -近似。我们的技术建立在最近的工作Guruswami,他和李谁证明了新的界限容忍删除错误的纠错码。他们证明了一个组合的“结构引理”的字符串分类,他们根据自己的振荡模式。我们证明和使用的算法推广这个结构引理,这可能是独立的利益。

英文摘要:

The Longest Common Subsequence (LCS) is a fundamental string similarity measure, and computing the LCS of two strings is a classic algorithms question. A textbook dynamic programming algorithm gives an exact algorithm in quadratic time, and this is essentially best possible under plausible fine-grained complexity assumptions, so a natural problem is to find faster approximation algorithms. When the inputs are two binary strings, there is a simple $\frac{1}{2}$-approximation in linear time: compute the longest common all-0s or all-1s subsequence. It has been open whether a better approximation is possible even in truly subquadratic time. Rubinstein and Song showed that the answer is yes under the assumption that the two input strings have equal lengths. We settle the question, generalizing their result to unequal length strings, proving that, for any $\varepsilon>0$, there exists $δ>0$ and a $(\frac{1}{2}+δ)$-approximation algorithm for binary LCS that runs in $n^{1+\varepsilon}$ time. As a consequence of our result and a result of Akmal and Vassilevska-Williams, for any $\varepsilon>0$, there exists a $(\frac{1}{q}+δ)$-approximation for LCS over $q$-ary strings in $n^{1+\varepsilon}$ time. Our techniques build on the recent work of Guruswami, He, and Li who proved new bounds for error-correcting codes tolerating deletion errors. They prove a combinatorial "structure lemma" for strings which classifies them according to their oscillation patterns. We prove and use an algorithmic generalization of this structure lemma, which may be of independent interest.

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

↑