On the Communication Complexity of Approximate Pattern Matching
Tomasz Kociumaka, Jakob Nogler, Philip Wellnitz
ๆ่ฆ
The decades-old Pattern Matching with Edits problem, given a length-๐ string ๐ (the text), a length-๐ string ๐ (the pattern), and a positive integer ๐ (the threshold), asks to list all fragments of ๐ that are at edit distance at most ๐ from ๐. 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 ๐ and ๐.
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 ฮฉ(๐/๐ โข ๐ log(๐/๐)) bits are necessary and ๐ช(๐/๐ โข ๐ log(๐|ฮฃ|/๐)) bits are sufficient; the upper bound allows encoding not only the occurrences of ๐ in ๐ with at most ๐ mismatches but also the substitutions needed to make each ๐-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 ฮฉ(๐/๐ โข ๐ log(๐/๐)) bits and an upper bound of ๐ช(๐/๐ โข ๐ 3 log ๐) bits stemming from previous research. In this work, we prove an upper bound of ๐ช(๐/๐ โข ๐ log 2 ๐) bits, thus establishing the optimal communication complexity up to logarithmic factors. We also show that ๐ช(๐/๐ โข ๐ log ๐ log(๐|ฮฃ|)) bits allow encoding, for each ๐-error occurrence of ๐ in ๐, the shortest sequence of edits needed to make the occurrence exact. Our result further emphasizes the close relationship between Pattern Matching with Mismatches and Pattern Matching with Edits.
We leverage the techniques behind our new result on the communication complexity to obtain quantum algorithms for Pattern Matching with Edits: we demonstrate a quantum algorithm that uses ๐ช(๐ 1+๐(1) /๐ โข โ ๐๐) queries and ๐ช(๐ 1+๐(1) /๐ โข ( โ ๐๐ + ๐ 3.5 )) quantum time. Moreover, when determining the existence of at least one occurrence, the algorithm uses ๐ช( ๐ 1+๐(1) /๐ โข โ ๐๐) queries and ๐ช( ๐ 1+๐(1) /๐ โข ( โ ๐๐ + ๐ 3.5 )) time. For both cases, we establish corresponding lower bounds to demonstrate that the query complexity is optimal up to sub-polynomial factors. Acknowledgements The work of Philip Wellnitz was carried out at the Max Planck Institute for Informatics. The work of Jakob Nogler was carried out mostly during a summer internship at the Max Planck Institute for Informatics.
้ฎ้ฎ่ฟ็ฏ Paper
ๆบ่ฝไฝไผ่ฏปๅฎๅ จๆใ
Lune ๆ่ฟ็ฏ Paper ็ดขๅผๅฐไบๆฏไธไธชๅ ฌๅผ๏ผๅผ็จๅฎ็้กถไผ Paper ไนไธๆ ทใไฝ ๆ้ฎ๏ผๅ็ญ็ดๆฅๅผ็จๅๆใ
ๅผ็จๅฎ็้กถไผ Paper4
- Faster Weighted and Unweighted Tree Edit Distance and APSP EquivalenceJakob Nogler, Adam Polak, Barna Saha, Virginia Vassilevska Williams ็ญSTOC 2025 ยท ่ขซๅผ็จ 4 ๆฌก
- Pattern Matching under Weighted Edit DistancePanagiotis Charalampopoulos, Tomasz Kociumaka, Philip WellnitzFOCS 2025 ยท ่ขซๅผ็จ 3 ๆฌก
- Near-Optimal-Time Quantum Algorithms for Approximate Pattern MatchingTomasz Kociumaka, Jakob Nogler, Philip WellnitzSODA 2025 ยท ่ขซๅผ็จ 1 ๆฌก
- Tight Lower Bounds for Central String Queries in Compressed SpaceDominik Kempa, Tomasz KociumakaSODA 2026
ๅฎๅผ็จ็้กถไผ Paper9
- Near-Optimal Quantum Algorithms for String ProblemsShyan Akmal, Ce JinSODA 2022 ยท ่ขซๅผ็จ 15 ๆฌก
- Small-space and streaming pattern matching with editsTomasz Kociumaka, Ely Porat, Tatiana StarikovskayaFOCS 2021 ยท ่ขซๅผ็จ 13 ๆฌก
- Quantum Speed-ups for String Synchronizing Sets, Longest Common Substring, and k-mismatch MatchingCe Jin, Jakob NoglerSODA 2023 ยท ่ขซๅผ็จ 10 ๆฌก
- Faster Pattern Matching under Edit Distance : A Reduction to Dynamic Puzzle Matching and the Seaweed Monoid of Permutation MatricesPanagiotis Charalampopoulos, Tomasz Kociumaka, Philip WellnitzFOCS 2022 ยท ่ขซๅผ็จ 8 ๆฌก
- Gap Edit Distance via Non-Adaptive Queries: Simple and OptimalElazar Goldenberg, Tomasz Kociumaka, Robert Krauthgamer, Barna SahaFOCS 2022 ยท ่ขซๅผ็จ 5 ๆฌก
็ธๅ ณ Paper
- Faster Approximate Pattern Matching: A Unified ApproachPanagiotis Charalampopoulos, Tomasz Kociumaka, Philip WellnitzFOCS 2020 ยท ่ขซๅผ็จ 2 ๆฌก
- Near-Optimal Property Testers for Pattern MatchingCe Jin, Tomasz KociumakaFOCS 2025 ยท ่ขซๅผ็จ 1 ๆฌก
- Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv FactorizationDaniel Gibney, Ce Jin, Tomasz Kociumaka, Sharma V. ThankachanSODA 2024 ยท ่ขซๅผ็จ 7 ๆฌก
- Faster two-dimensional pattern matching with k mismatchesJonas Ellert, Pawel Gawrychowski, Adam Gรณrkiewicz, Tatiana StarikovskayaSODA 2025 ยท ่ขซๅผ็จ 1 ๆฌก
- Almost-optimal sublinear-time edit distance in the low distance regimeKarl Bringmann, Alejandro Cassis, Nick Fischer, Vasileios NakosSTOC 2022 ยท ่ขซๅผ็จ 4 ๆฌก
