English

The Communication Complexity of Pattern Matching with Edits Revisited

Data Structures and Algorithms 2026-04-20 v1

Abstract

In 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), the task is to list the kk-error occurrences of PP in TT, that is, all fragments of TT whose edit distance to PP is at most kk. The one-way communication complexity of Pattern Matching with Edits is the minimum number of bits that Alice, given an instance (P,T,k)(P, T, k) of the problem, must send to Bob so that Bob can reconstruct the answer solely from that message. For the natural parameter regime of 0<k<m<n/20 < k < m < n/2, our recent work [STOC'24] yields that Ω(n/mklog(m/k)){\Omega}(n/m \cdot k \log(m/k)) bits are necessary and O(n/mklog2m)O(n/m \cdot k \log^2 m) bits are sufficient for Pattern Matching with Edits. More generally, for strings over an alphabet Σ{\Sigma}, our recent work [STOC'24] gives an O(n/mklogmlog(mΣ))O(n/m \cdot k \log m \log(m|{\Sigma}|))-bit encoding that allows one to recover a shortest sequence of edits for every kk-error occurrence of PP in TT. In this work, we revisit the original proof and improve the encoding size to O(n/mklog(mΣ/k))O(n/m \cdot k \log(m|{\Sigma}|/k)), which matches the lower bound for constant-sized alphabets. We further establish a new tight lower bound of Ω(n/mklog(mΣ/k)){\Omega}(n/m \cdot k \log(m|{\Sigma}|/k)) for the edit sequence reporting variant that we solve. Our encoding size also matches the communication complexity established for the simpler Pattern Matching with Mismatches problem in the context of streaming algorithms [Clifford, Kociumaka, Porat; SODA'19].

Keywords

Cite

@article{arxiv.2604.15601,
  title  = {The Communication Complexity of Pattern Matching with Edits Revisited},
  author = {Tomasz Kociumaka and Jakob Nogler and Philip Wellnitz},
  journal= {arXiv preprint arXiv:2604.15601},
  year   = {2026}
}

Comments

41 pages, 2 figures; reuses and improves parts of 2403.18812 and 2410.06808