Almost Linear Size Edit Distance Sketch
Abstract
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
(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), andBhattacharya and Koucký (STOC'2023).
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Locally Consistent Decomposition of Strings with Applications to Edit Distance Sketching cites Constant factor approximations to edit distance on far input pairs in nearly linear time
- Locally Consistent Decomposition of Strings with Applications to Edit Distance Sketching cites Small-space and streaming pattern matching with k edits
- Locally Consistent Decomposition of Strings with Applications to Edit Distance Sketching cites Edit Distance in Near-Linear Time: it's a Constant Factor
- Locally Consistent Decomposition of Strings with Applications to Edit Distance Sketching cites How Compression and Approximation Affect Efficiency in String Distance Measures
- Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer Weights cites Locally Consistent Decomposition of Strings with Applications to Edit Distance Sketching
- Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer Weights cites How Compression and Approximation Affect Efficiency in String Distance Measures
- On the Communication Complexity of Approximate Pattern Matching cites Small-space and streaming pattern matching with k edits
- Edit Distance in Near-Linear Time: it's a Constant Factor cites Constant factor approximations to edit distance on far input pairs in nearly linear time
- How Compression and Approximation Affect Efficiency in String Distance Measures cites Constant factor approximations to edit distance on far input pairs in nearly linear time
- How Compression and Approximation Affect Efficiency in String Distance Measures cites Edit Distance in Near-Linear Time: it's a Constant Factor
- Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer Weights
- Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Constant factor approximations to edit distance on far input pairs in nearly linear time
- Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Small-space and streaming pattern matching with k edits
- Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic Time cites Edit Distance in Near-Linear Time: it's a Constant Factor
Cited by top-tier papers3
- Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic TimeXiao Mao, Aviad RubinsteinSTOC 2026 · 4 citations
- On the Communication Complexity of Approximate Pattern MatchingTomasz Kociumaka, Jakob Nogler, Philip WellnitzSTOC 2024 · 2 citations
- Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer WeightsEgor Gorbachev, Tomasz KociumakaSTOC 2025 · 1 citation
Builds on6
- Edit Distance in Near-Linear Time: it's a Constant FactorAlexandr Andoni, Negev Shekel NosatzkiFOCS 2020 · 28 citations
- Small-space and streaming pattern matching with editsTomasz Kociumaka, Ely Porat, Tatiana StarikovskayaFOCS 2021 · 13 citations
- How Compression and Approximation Affect Efficiency in String Distance MeasuresArun Ganesh, Tomasz Kociumaka, Andrea Lincoln, Barna SahaSODA 2022 · 7 citations
- Constant factor approximations to edit distance on far input pairs in nearly linear timeMichal Koucký, Michael E. SaksSTOC 2020 · 5 citations
- Locally Consistent Decomposition of Strings with Applications to Edit Distance SketchingSudatta Bhattacharya, Michal KouckýSTOC 2023 · 3 citations
Related papers
- MinSearch: An Efficient Algorithm for Similarity Search under Edit DistanceHaoyu Zhang, Qin ZhangKDD 2020 · 11 citations
- Almost-optimal sublinear-time edit distance in the low distance regimeKarl Bringmann, Alejandro Cassis, Nick Fischer, Vasileios NakosSTOC 2022 · 4 citations
- Faster Sublinear-Time Edit DistanceKarl Bringmann, Alejandro Cassis, Nick Fischer, Tomasz KociumakaSODA 2024 · 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
- Approximating Edit Distance in the Fully Dynamic ModelTomasz Kociumaka, Anish Mukherjee, Barna SahaFOCS 2023 · 1 citation
