TY - GEN
T1 - Hamming Distance Oracles
AU - Boneh, Itai
AU - Fried, Dvir
AU - Golan, Shay
AU - Kraus, Matan
AU - Porat, Ely
N1 - Publisher Copyright:
© Itai Boneh, Dvir Fried, Shay Golan, Matan Kraus, and Ely Porat;
PY - 2026/6/8
Y1 - 2026/6/8
N2 - In this paper, we present and study the Hamming distance oracle problem. In this problem, the task is to preprocess two strings S and T of lengths n and m, respectively, to obtain a data structure that is able to return the Hamming distance between a substring of S and a substring of T. For strings over a constant-size alphabet, we show that for every x ≤ min{n, m} there is a data structure with Õ(nm/x) preprocessing time and O(x) query time. We also provide a conditional lower bound, showing that for every ε > 0 there is no combinatorial data structure with query time O(x) and preprocessing time O(nm/x )1−ε) unless combinatorial fast matrix multiplication is possible. For strings over a general alphabet, we present a data structure with Õ(nm/√x) pre-processing time and O(x) query time for every x ≤ min{n, m}. Moreover, for every ε > 0 we provide a data structure with a preprocessing time of Õ(n+m/ε3 ) that returns with high probability a (1 ± ε) approximation of the Hamming distance of two input substrings. The query time of the approximation data structure is Õ(1/ε2).
AB - In this paper, we present and study the Hamming distance oracle problem. In this problem, the task is to preprocess two strings S and T of lengths n and m, respectively, to obtain a data structure that is able to return the Hamming distance between a substring of S and a substring of T. For strings over a constant-size alphabet, we show that for every x ≤ min{n, m} there is a data structure with Õ(nm/x) preprocessing time and O(x) query time. We also provide a conditional lower bound, showing that for every ε > 0 there is no combinatorial data structure with query time O(x) and preprocessing time O(nm/x )1−ε) unless combinatorial fast matrix multiplication is possible. For strings over a general alphabet, we present a data structure with Õ(nm/√x) pre-processing time and O(x) query time for every x ≤ min{n, m}. Moreover, for every ε > 0 we provide a data structure with a preprocessing time of Õ(n+m/ε3 ) that returns with high probability a (1 ± ε) approximation of the Hamming distance of two input substrings. The query time of the approximation data structure is Õ(1/ε2).
KW - Data structure
KW - Fine-grained complexity
KW - Hamming distance
KW - Oracle
UR - https://www.scopus.com/pages/publications/105042268671
U2 - 10.4230/LIPIcs.CPM.2026.1
DO - 10.4230/LIPIcs.CPM.2026.1
M3 - ???researchoutput.researchoutputtypes.contributiontobookanthology.conference???
AN - SCOPUS:105042268671
T3 - Leibniz International Proceedings in Informatics, LIPIcs
BT - 37th Annual Symposium on Combinatorial Pattern Matching, CPM 2026
A2 - Bille, Philip
A2 - Prezza, Nicola
PB - Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
T2 - 37th Annual Symposium on Combinatorial Pattern Matching, CPM 2026
Y2 - 15 June 2026 through 17 June 2026
ER -