Elastic-Degenerate String Matching with 1 Error

09/02/2022
βˆ™
by   Giulia Bernardini, et al.
βˆ™
0
βˆ™

An elastic-degenerate string is a sequence of n finite sets of strings of total length N, 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 m in an ED text. This problem has recently received some attention by the combinatorial pattern matching community, culminating in an π’ͺΜƒ(nm^Ο‰-1)+π’ͺ(N)-time algorithm [Bernardini et al., SIAM J. Comput. 2022], where Ο‰ denotes the matrix multiplication exponent and the π’ͺΜƒ(Β·) notation suppresses polylog factors. In the k-EDSM problem, the approximate version of EDSM, we are asked to report all pattern occurrences with at most k errors. k-EDSM can be solved in π’ͺ(k^2mG+kN) time, under edit distance, or π’ͺ(kmG+kN) time, under Hamming distance, where G denotes the total number of strings in the ED text [Bernardini et al., Theor. Comput. Sci. 2020]. Unfortunately, G is only bounded by N, and so even for k=1, the existing algorithms run in Ξ©(mN) time in the worst case. In this paper we show that 1-EDSM can be solved in π’ͺ((nm^2 + N)log m) or π’ͺ(nm^3 + N) time under edit distance. For the decision version, we present a faster π’ͺ(nm^2√(log m) + Nloglog m)-time algorithm. We also show that 1-EDSM can be solved in π’ͺ(nm^2 + Nlog m) time under Hamming distance. Our algorithms for edit distance rely on non-trivial reductions from 1-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 k-errata trees for indexing with errors [Cole et al., STOC 2004].

READ FULL TEXT

page 1

page 2

page 3

page 4

research
βˆ™ 08/18/2022

Approximate Circular Pattern Matching

We consider approximate circular pattern matching (CPM, in short) under ...
research
βˆ™ 05/07/2019

Even Faster Elastic-Degenerate String Matching via Fast Matrix Multiplication

An elastic-degenerate (ED) string is a sequence of n sets of strings of ...
research
βˆ™ 07/16/2020

String Sanitization Under Edit Distance: Improved and Generalized

Let W be a string of length n over an alphabet Ξ£, k be a positive intege...
research
βˆ™ 05/13/2020

k-Approximate Quasiperiodicity under Hamming and Edit Distance

Quasiperiodicity in strings was introduced almost 30 years ago as an ext...
research
βˆ™ 01/13/2018

Longest Common Prefixes with k-Errors and Applications

Although real-world text datasets, such as DNA sequences, are far from b...
research
βˆ™ 05/07/2021

Faster Algorithms for Longest Common Substring

In the classic longest common substring (LCS) problem, we are given two ...
research
βˆ™ 11/06/2017

FAMOUS: Fast Approximate string Matching using OptimUm search Schemes

Finding approximate occurrences of a pattern in a text using a full-text...

Please sign up or login with your details

Forgot password? Click here to reset