mlsanityData to 14 Oct 2026

The Dynamic k-Mismatch Problem

arXiv 2105.06166 ↗First posted 13 May 2021cs.DScited by 1

Not on the map. Why?

Abstract (arXiv)

The text-to-pattern Hamming distances problem asks to compute the Hamming distances between a given pattern of length m and all length-m substrings of a given text of length n≥ m. We focus on the k-mismatch version of the problem, where a distance needs to be returned only if it does not exceed a threshold k. We assume n≤ 2m (in general, one can partition the text into overlapping blocks). In this work, we show data structures for the dynamic version of this problem supporting two operations: An update performs a single-letter substitution in the pattern or the text, and a query, given an index i, returns the Hamming distance between the pattern and the text substring starting at position i, or reports that it exceeds k. First, we show a data structure with tildeO(1) update and tildeO(k) query time. Then we show that tildeO(k) update and tildeO(1) query time is also possible. These two provide an optimal trade-off for the dynamic k-mismatch problem with k ≤ √n: we prove that, conditioned on the strong 3SUM conjecture, one cannot simultaneously achieve k1-Omega(1) time for all operations. For k≥ √n, we give another lower bound, conditioned on the Online Matrix-Vector conjecture, that excludes algorithms taking n1/2-Omega(1) time per operation. This is tight for constant-sized alphabets: Clifford et al. (STACS 2018) achieved tildeO(√n) time per operation in that case, but with tildeO(n3/4) time per operation for large alphabets. We improve and extend this result with an algorithm that, given 1≤ x≤ k, achieves update time tildeO(fracnk +√fracnkx) and query time tildeO(x). In particular, for k≥ √n, an appropriate choice of x yields tildeO(√[3]nk) time per operation, which is tildeO(n2/3) when no threshold k is provided.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). First posted on arXiv 13 May 2021.

Builds on

No reference list yet.

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.