English

On the Communication Complexity of Approximate Pattern Matching

Data Structures and Algorithms 2024-10-10 v2 Quantum Physics

Abstract

The decades-old Pattern Matching with Edits problem, given a length-nn string TT (the text), a length-mm string PP (the pattern), and a positive integer kk (the threshold), asks to list all fragments of TT that are at edit distance at most kk from PP. The one-way communication complexity of this problem is the minimum amount of space needed to encode the answer so that it can be retrieved without accessing the input strings PP and TT. The closely related Pattern Matching with Mismatches problem (defined in terms of the Hamming distance instead of the edit distance) is already well understood from the communication complexity perspective: Clifford, Kociumaka, and Porat [SODA 2019] proved that Ω(n/mklog(m/k))\Omega(n/m \cdot k \log(m/k)) bits are necessary and O(n/mklog(mΣ/k))O(n/m \cdot k\log (m|\Sigma|/k)) bits are sufficient; the upper bound allows encoding not only the occurrences of PP in TT with at most kk mismatches but also the substitutions needed to make each kk-mismatch occurrence exact. Despite recent improvements in the running time [Charalampopoulos, Kociumaka, and Wellnitz; FOCS 2020 and 2022], the communication complexity of Pattern Matching with Edits remained unexplored, with a lower bound of Ω(n/mklog(m/k))\Omega(n/m \cdot k\log(m/k)) bits and an upper bound of O(n/mk3logm)O(n/m \cdot k^3\log m) bits stemming from previous research. In this work, we prove an upper bound of O(n/mklog2m)O(n/m \cdot k \log^2 m) bits, thus establishing the optimal communication complexity up to logarithmic factors. We also show that O(n/mklogmlog(mΣ))O(n/m \cdot k \log m \log (m|\Sigma|)) bits allow encoding, for each kk-error occurrence of PP in TT, the shortest sequence of edits needed to make the occurrence exact. We leverage the techniques behind our new result on the communication complexity to obtain quantum algorithms for Pattern Matching with Edits.

Keywords

Cite

@article{arxiv.2403.18812,
  title  = {On the Communication Complexity of Approximate Pattern Matching},
  author = {Tomasz Kociumaka and Jakob Nogler and Philip Wellnitz},
  journal= {arXiv preprint arXiv:2403.18812},
  year   = {2024}
}

Comments

67 pages; 5 figures; abstract shortened

R2 v1 2026-06-28T15:35:55.311Z