arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.11225cs.DS
收藏

几乎线性大小的编辑距离草图

Almost Linear Size Edit Distance Sketch

Michal Koucký, Michael Saks

AI总结:

本文提出一种几乎线性大小的编辑距离草图方案,在给定阈值k内以高概率恢复编辑距离及最优操作序列,将草图大小对k的依赖从二次改进为信息论最优。

摘要:

编辑距离是衡量字符串相似性的重要指标,它统计了将一个字符串$x$转换为另一个字符串$y$所需执行的插入、删除和替换操作的数量。本文设计了一种几乎线性大小的草图方案,用于在给定阈值$k$范围内计算编辑距离。该方案包含两个算法:草图算法和恢复算法。草图算法依赖于参数$k$,以字符串$x$和公共随机字符串$ρ$为输入,计算得到草图$sk_ρ(x;k)$,即$x$的摘要版本。恢复算法接收两个草图$sk_ρ(x;k)$和$sk_ρ(y;k)$以及用于生成这两个草图的公共随机字符串$ρ$,并且(以高概率)如果$x$与$y$之间的编辑距离$ED(x,y)$不超过$k$,则输出$ED(x,y)$以及将$x$转换为$y$的最优编辑操作序列;如果$ED(x,y) > k$,则输出LARGE。草图算法在输入$x$上输出的草图大小为$k{2^{O(\sqrt{\log(n)\log\log(n)})}}$(其中$n$是$x$长度的上界)。草图算法和恢复算法的运行时间均为$n$的多项式时间。草图大小对$k$的依赖在信息论意义下是最优的,并且改进了Kociumaka、Porat和Starikovskaya(FOCS'2021)以及Bhattacharya和Koucký(STOC'2023)方案中对$k$的二次依赖。

英文摘要:

Edit distance is an important measure of string similarity. It counts the number of insertions, deletions and substitutions one has to make to a string $x$ to get a string $y$. In this paper we design an almost linear-size sketching scheme for computing edit distance up to a given threshold $k$. The scheme consists of two algorithms, a sketching algorithm and a recovery algorithm. The sketching algorithm depends on the parameter $k$ and takes as input a string $x$ and a public random string $ρ$ and computes a sketch $sk_ρ(x;k)$, which is a digested version of $x$. The recovery algorithm is given two sketches $sk_ρ(x;k)$ and $sk_ρ(y;k)$ as well as the public random string $ρ$ used to create the two sketches, and (with high probability) if the edit distance $ED(x,y)$ between $x$ and $y$ is at most $k$, will output $ED(x,y)$ together with an optimal sequence of edit operations that transforms $x$ to $y$, and if $ED(x,y) > k$ will output LARGE. The size of the sketch output by the sketching algorithm on input $x$ is $k{2^{O(\sqrt{\log(n)\log\log(n)})}}$ (where $n$ is an upper bound on length of $x$). The sketching and recovery algorithms both run in time polynomial in $n$. The dependence of sketch size on $k$ is information theoretically optimal and improves over the quadratic dependence on $k$ in schemes of Kociumaka, Porat and Starikovskaya (FOCS'2021), and Bhattacharya and Koucký (STOC'2023).

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

↑