MinSearch: An Efficient Algorithm for Similarity Search under Edit Distance
Haoyu Zhang, Qin Zhang
Abstract
We study a fundamental problem in data analytics: similarity search under edit distance (or, edit similarity search for short). In this problem we try to build an index on a set of n strings S = s 1 , . . . , s n , with the goal of answering the following two types of queries: (1) the threshold query: given a query string t and a threshold K, output all s i ∈ S such that the edit distance between s i and t is at most K; (2) the top-k query: given a query string t, output the k strings in S that are closest to t in terms of edit distance. Edit similarity search has numerous applications in bioinformatics, databases, data mining, information retrieval, etc., and has been studied extensively in the literature.
In this paper we propose a novel algorithm for edit similarity search named MinSearch. The algorithm is randomized, and we can show mathematically that it outputs the correct answer with high probability for both types of queries. We have conducted an extensive set of experiments on MinSearch, and compared it with the best existing algorithms for edit similarity search. Our experiments show that MinSearch has a clear advantage (often in orders of magnitudes) against the best previous algorithms in query time, and MinSearch is always one of the best among all competitors in the indexing time and space usage. Finally, MinSearch achieves perfect accuracy for both types of queries on all datasets that we have tested.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers3
- Fast Comparative Analysis of Merge Trees Using Locality Sensitive HashingWeiran Lyu, Raghavendra Sridharamurthy, Jeff M. Phillips, Bei WangIEEE VIS 2024 · 8 citations
- minIL: A Simple and Small Index for String Similarity Search with Edit DistanceZhong Yang, Bolong Zheng, Xianzhi Wang, Guohui Li et al.ICDE 2022 · 2 citations
- FedVS: Towards Federated Vector Similarity Search with FiltersZeheng Fan, Yuxiang Zeng, Zhuanglin Zheng, Binhan Yang et al.KDD 2025 · 1 citation
Related papers
- Almost Linear Size Edit Distance SketchMichal Koucký, Michael E. SaksSTOC 2024 · 1 citation
- Boosting Graph Similarity Search through Pre-ComputationJongik KimSIGMOD 2021 · 10 citations
- SimTab: Accuracy-Guaranteed SimRank Queries through Tighter Confidence Bounds and Multi-Armed BanditsYu Liu, Lei Zou, Qian Ge, Zhewei WeiVLDB 2020
- S^3AND: Efficient Subgraph Similarity Search Under Aggregated Neighbor Difference SemanticsQi Wen, Yutong Ye, Xiang Lian, Mingsong ChenVLDB 2025 · 3 citations
- Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv FactorizationDaniel Gibney, Ce Jin, Tomasz Kociumaka, Sharma V. ThankachanSODA 2024 · 7 citations
