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.

生成讲解博客的中文版本

生成AI智能校验的中文版本