English

Approximate Similarity Search Under Edit Distance Using Locality-Sensitive Hashing

Data Structures and Algorithms 2020-07-10 v2

Abstract

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 nn strings of length dd, to quickly answer queries qq of the form: if there is a database string within edit distance rr of qq, return a database string within edit distance crcr of qq. Previous approaches to this problem either rely on very large (superconstant) approximation ratios cc, or very small search radii rr. Outside of a narrow parameter range, these solutions are not competitive with trivially searching through all nn 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 O~(d3rn1/c)\tilde{O}(d3^rn^{1/c}). The best known practical results require crc \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 24r24^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.

Keywords

Cite

@article{arxiv.1907.01600,
  title  = {Approximate Similarity Search Under Edit Distance Using Locality-Sensitive Hashing},
  author = {Samuel McCauley},
  journal= {arXiv preprint arXiv:1907.01600},
  year   = {2020}
}
R2 v1 2026-06-23T10:10:26.524Z