Locally consistent decomposition of strings with applications to edit distance sketching
Abstract
In this paper we provide a new locally consistent decomposition of strings. Each string is decomposed into blocks that can be described by grammars of size (using some amount of randomness). If we take two strings and of edit distance at most then their block decomposition uses the same number of grammars and the -th grammar of is the same as the -th grammar of except for at most indexes . The edit distance of and equals to the sum of edit distances of pairs of blocks where and differ. Our decomposition can be used to design a sketch of size for edit distance, and also a rolling sketch for edit distance of size . The rolling sketch allows to update the sketched string by appending a symbol or removing a symbol from the beginning of the string.
Keywords
Cite
@article{arxiv.2302.04475,
title = {Locally consistent decomposition of strings with applications to edit distance sketching},
author = {Sudatta Bhattacharya and Michal Koucký},
journal= {arXiv preprint arXiv:2302.04475},
year = {2023}
}