2020/02/09 by Uznański, Przemysław
#Data Structures and Algorithms (cs.DS) #FOS: Computer and information sciences
paper · doi:10.48550/arxiv.2002.03459
Text-to-pattern distance is a fundamental problem in string matching, where given a pattern of length m and a text of length n, over an integer alphabet, we are asked to compute the distance between pattern and the text at every location. The distance function can be e.g. Hamming distance or ℓp distance for some parameter p > 0. Almost all state-of-the-art exact and approximate algorithms developed in the past ∼ 40 years were using FFT as a black-box. In this work we present \widetildeO(n/ε2) time algorithms for (1±ε)-approximation of ℓ2 distances, and \widetildeO(n/ε3) algorithm for approximation of Hamming and ℓ1 distances, all without use of FFT. This is independent to the very recent development by Chan et al. [STOC 2020], where O(n/ε2) algorithm for Hamming distances not using FFT was presented -- although their algorithm is much more "combinatorial", our techniques apply to other norms than Hamming.