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

基于局部敏感哈希的编辑距离近似相似搜索

Approximate Similarity Search Under Edit Distance Using Locality-Sensitive Hashing

Samuel McCauley

摘要:

编辑距离相似性搜索,也称为近似模式匹配,是广泛应用于数据库的基本问题。问题的目标是预处理长度为$d$的$n$字符串,以快速回答以下形式的查询$q$:如果存在$q$的编辑距离$r$内的数据库字符串,则返回$q$的编辑距离$cr$内的数据库字符串。以前的方法,这个问题要么依赖于非常大的(超常数)近似比$c$,或非常小的搜索半径$r$。在狭窄的参数范围之外,这些解决方案与普通地搜索所有$n$字符串相比没有竞争力。在这项工作中,给出了一个简单且易于实现的哈希函数,可以快速回答各种参数的查询。具体来说,我们的策略可以回答查询的时间$\tilde{O}(d3^rn^{1/c})$。最著名的实际结果要求$c \gg r$达到任何正确性保证;同时,最著名的理论结果非常复杂,难以实现,并且要求查询时间至少为$24^r$。我们的研究结果显着拓宽了参数的范围,我们可以实现非平凡的界限,同时保留了实用性的局部敏感的哈希函数。我们还展示了如何将我们的想法应用于编辑距离的密切相关的近似最近邻问题,获得类似的时间范围。

英文摘要:

Edit distance similarity search, also called approximate pattern matching, is a fundamental problem with widespread database applications. The goal of the problem is to preprocess $n$ strings of length $d$, to quickly answer queries $q$ of the form: if there is a database string within edit distance $r$ of $q$, return a database string within edit distance $cr$ of $q$. Previous approaches to this problem either rely on very large (superconstant) approximation ratios $c$, or very small search radii $r$. Outside of a narrow parameter range, these solutions are not competitive with trivially searching through all $n$ strings. In this work give a simple and easy-to-implement hash function that can quickly answer queries for a wide range of parameters. Specifically, our strategy can answer queries in time $\tilde{O}(d3^rn^{1/c})$. The best known practical results require $c \gg r$ to achieve any correctness guarantee; meanwhile, the best known theoretical results are very involved and difficult to implement, and require query time at least $24^r$. Our results significantly broaden the range of parameters for which we can achieve nontrivial bounds, while retaining the practicality of a locality-sensitive hash function. We also show how to apply our ideas to the closely-related Approximate Nearest Neighbor problem for edit distance, obtaining similar time bounds.

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

↑