Elastic-Degenerate String Matching with 1 Error
Abstract
An elastic-degenerate string is a sequence of finite sets of strings of total length , introduced to represent a set of related DNA sequences, also known as a pangenome. The ED string matching (EDSM) problem consists in reporting all occurrences of a pattern of length in an ED text. This problem has recently received some attention by the combinatorial pattern matching community, culminating in an -time algorithm [Bernardini et al., SIAM J. Comput. 2022], where denotes the matrix multiplication exponent and the notation suppresses polylog factors. In the -EDSM problem, the approximate version of EDSM, we are asked to report all pattern occurrences with at most errors. -EDSM can be solved in time, under edit distance, or time, under Hamming distance, where denotes the total number of strings in the ED text [Bernardini et al., Theor. Comput. Sci. 2020]. Unfortunately, is only bounded by , and so even for , the existing algorithms run in time in the worst case. In this paper we show that -EDSM can be solved in or time under edit distance. For the decision version, we present a faster -time algorithm. We also show that -EDSM can be solved in time under Hamming distance. Our algorithms for edit distance rely on non-trivial reductions from -EDSM to special instances of classic computational geometry problems (2d rectangle stabbing or 2d range emptiness), which we show how to solve efficiently. In order to obtain an even faster algorithm for Hamming distance, we rely on employing and adapting the -errata trees for indexing with errors [Cole et al., STOC 2004].
Keywords
Cite
@article{arxiv.2209.01095,
title = {Elastic-Degenerate String Matching with 1 Error},
author = {Giulia Bernardini and Estéban Gabory and Solon P. Pissis and Leen Stougie and Michelle Sweering and Wiktor Zuba},
journal= {arXiv preprint arXiv:2209.01095},
year = {2022}
}
Comments
This is an extended version of a paper accepted at LATIN 2022