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

编辑距离的多对数近似与非对称查询复杂度

Polylogarithmic Approximation for Edit Distance and the Asymmetric Query Complexity

Alexandr Andoni, Robert Krauthgamer, Krzysztof Onak

摘要:

我们提出了一个近似线性时间算法,它在一个多对数因子内近似两个字符串之间的编辑距离;具体地说,对于长度为n的字符串和每个固定的>0,它可以在n^(1+)时间内计算出(log n)^O(1/)近似值。这是对先前已知因子2^(O(sqrt(log n)的指数改进,具有可比的运行时间(Ostrovsky和Rabani J.ACM 2007; Andoni和Onak STOC 2009)。以前,对于涉及编辑距离的任何计算任务(例如,最近邻搜索或草图绘制)。这一结果是在研究一种新的非对称查询模型时自然产生的。在这个模型中,输入由两个字符串x和y组成,算法可以以不受限制的方式访问y,同时对查询x的每个符号进行收费。事实上,我们得到我们的主要结果,通过设计一个算法,使少量的查询在这个模型中。然后,我们提供了一个近乎匹配的下限查询的数量。我们的下界是第一个暴露出编辑距离的困难的输入字符串是“重复的”,这意味着它们的许多子字符串是近似相同的。因此,我们的下限提供了编辑距离和Ulam距离之间的第一个严格分离,Ulam距离是非重复字符串上的编辑距离,例如排列。

英文摘要:

We present a near-linear time algorithm that approximates the edit distance between two strings within a polylogarithmic factor; specifically, for strings of length n and every fixed epsilon>0, it can compute a (log n)^O(1/epsilon) approximation in n^(1+epsilon) time. This is an exponential improvement over the previously known factor, 2^(O (sqrt(log n))), with a comparable running time (Ostrovsky and Rabani J.ACM 2007; Andoni and Onak STOC 2009). Previously, no efficient polylogarithmic approximation algorithm was known for any computational task involving edit distance (e.g., nearest neighbor search or sketching). This result arises naturally in the study of a new asymmetric query model. In this model, the input consists of two strings x and y, and an algorithm can access y in an unrestricted manner, while being charged for querying every symbol of x. Indeed, we obtain our main result by designing an algorithm that makes a small number of queries in this model. We then provide a nearly-matching lower bound on the number of queries. Our lower bound is the first to expose hardness of edit distance stemming from the input strings being "repetitive", which means that many of their substrings are approximately identical. Consequently, our lower bound provides the first rigorous separation between edit distance and Ulam distance, which is edit distance on non-repetitive strings, such as permutations.

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

↑