paper

Hamming Distance Oracle

arXiv:2407.05430

Abstract

In this paper, we present and study the \emph{Hamming distance oracle problem}. In this problem, the task is to preprocess two strings and of lengths and , respectively, to obtain a data-structure that is able to answer queries regarding the Hamming distance between a substring of and a substring of . For a constant size alphabet strings, we show that for every there is a data structure with preprocess time and query time. We also provide a combinatorial conditional lower bound, showing that for every and there is no data structure with query time and preprocess time unless combinatorial fast matrix multiplication is possible. For strings over general alphabet, we present a data structure with preprocess time and query time for every .

Hamming Distance Oracle · wovepaper