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

编辑距离:草图绘制、流媒体和文档交换

Edit Distance: Sketching, Streaming and Document Exchange

Djamal Belazzougui, Qin Zhang

摘要:

我们表明,在文档交换问题,爱丽丝持有$x \in \{0,1\}^n$和鲍勃持有$y \in \{0,1\}^n$,爱丽丝可以发送给鲍勃的消息大小$O(K(\log^2 K+\log n))$位,使鲍勃可以恢复$x$使用的消息和他的输入$y$,如果$x$和$y$之间的编辑距离不超过$K$,否则输出“错误”。编码和解码都可以在时间$\tilde{O}(n+\mathsf{poly}(K))$中完成。这一结果显着改善了以前的通信界限下多项式编码/解码时间。我们还表明,在裁判模型中,爱丽丝和鲍勃持有$x$和$y$分别,他们可以计算草图的$x$和$y$的大小$\mathsf{poly}(K \log n)$位(编码),并发送给裁判,谁可以然后计算编辑距离之间的$x$和$y$连同所有的编辑操作,如果编辑距离不超过$K$,否则输出“错误”(解码)。据我们所知,这是使用$\mathsf{poly}(K \log n)$位绘制编辑距离的第一个结果。此外,我们的草图算法的编码阶段可以通过扫描输入字符串在一个通行证。因此,我们的草绘算法还意味着用于计算编辑距离的第一个流算法,并且所有编辑都精确地使用空间的$\mathsf{poly}(K \log n)$位。

英文摘要:

We show that in the document exchange problem, where Alice holds $x \in \{0,1\}^n$ and Bob holds $y \in \{0,1\}^n$, Alice can send Bob a message of size $O(K(\log^2 K+\log n))$ bits such that Bob can recover $x$ using the message and his input $y$ if the edit distance between $x$ and $y$ is no more than $K$, and output "error" otherwise. Both the encoding and decoding can be done in time $\tilde{O}(n+\mathsf{poly}(K))$. This result significantly improves the previous communication bounds under polynomial encoding/decoding time. We also show that in the referee model, where Alice and Bob hold $x$ and $y$ respectively, they can compute sketches of $x$ and $y$ of sizes $\mathsf{poly}(K \log n)$ bits (the encoding), and send to the referee, who can then compute the edit distance between $x$ and $y$ together with all the edit operations if the edit distance is no more than $K$, and output "error" otherwise (the decoding). To the best of our knowledge, this is the first result for sketching edit distance using $\mathsf{poly}(K \log n)$ bits. Moreover, the encoding phase of our sketching algorithm can be performed by scanning the input string in one pass. Thus our sketching algorithm also implies the first streaming algorithm for computing edit distance and all the edits exactly using $\mathsf{poly}(K \log n)$ bits of space.

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

↑