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 to get a string . In this paper we design an almost linear-size sketching scheme for computing edit distance up to a given threshold . The scheme consists of two algorithms, a sketching algorithm and a recovery algorithm. The sketching algorithm depends on the parameter and takes as input a string and a public random string and computes a sketch , which is a digested version of . The recovery algorithm is given two sketches and as well as the public random string used to create the two sketches, and (with high probability) if the edit distance between and is at most , will output together with an optimal sequence of edit operations that transforms to , and if will output LARGE. The size of the sketch output by the sketching algorithm on input is (where is an upper bound on length of ). The sketching and recovery algorithms both run in time polynomial in . The dependence of sketch size on is information theoretically optimal and improves over the quadratic dependence on in schemes of Kociumaka, Porat and Starikovskaya (FOCS'2021), and Bhattacharya and Kouck\'y (STOC'2023).
Cite
@article{arxiv.2406.11225,
title = {Almost Linear Size Edit Distance Sketch},
author = {Michal Koucký and Michael Saks},
journal= {arXiv preprint arXiv:2406.11225},
year = {2024}
}