Approximating Approximate Pattern Matching
arXiv:1810.01676
Abstract
Given a text of length and a pattern of length , the approximate pattern matching problem asks for computation of a particular \emph{distance} function between and every -substring of . We consider a multiplicative approximation variant of this problem, for distance function. In this paper, we describe two -approximate algorithms with a runtime of for all (constant) non-negative values of . For constant we show a deterministic -approximation algorithm. Previously, such run time was known only for the case of distance, by Gawrychowski and Uznański [ICALP 2018] and only with a randomized algorithm. For constant we show a randomized algorithm for the , thereby providing a smooth tradeoff between algorithms of Kopelowitz and Porat [FOCS~2015, SOSA~2018] for Hamming distance (case of ) and of Gawrychowski and Uznański for distance.