Lune

SODA2025顶会

Near-Optimal-Time Quantum Algorithms for Approximate Pattern Matching

Tomasz Kociumaka, Jakob Nogler, Philip Wellnitz

摘要

Approximate Pattern Matching is among the most fundamental string-processing tasks. Given a text 𝑇 of length 𝑛, a pattern 𝑃 of length 𝑚, and a threshold 𝑘, the task is to identify the fragments of 𝑇 that are at distance at most 𝑘 to 𝑃. We consider the two most common distances: Hamming distance (the number of mismatches or character substitutions) in Pattern Matching with Mismatches and edit distance (the minimum number of character insertions, deletions, and substitutions) in Pattern Matching with Edits. We revisit the complexity of these two problems in the quantum setting.

Our recent work [STOC'24] shows that Ô( 𝑛/𝑚 • √ 𝑚𝑘) = Ô( √ 𝑛𝑘)1 quantum queries are sufficient to solve (the decision version of) the Pattern Matching with Edits problem. However, the quantum time complexity of the underlying solution (that is, the computational overhead to recover the solution from the quantum queries) does not provide any improvement over classical computation. On the other hand, the state-of-the-art quantum algorithm for Pattern Matching with Mismatches [Jin and Nogler; SODA'23] achieves query complexity Ô( √ 𝑛𝑘 3/2 ) and time complexity Õ( √ 𝑛𝑘 2 ), falling short of a known unconditional lower bound of Ω( √ 𝑛𝑘) quantum queries. In this work, we present quantum algorithms with a time complexity of Õ( √ 𝑛𝑘 + 𝑛/𝑚 • 𝑘 2 ) for Pattern Matching with Mismatches and Ô( √ 𝑛𝑘 + 𝑛/𝑚 • 𝑘 3.5 ) for Pattern Matching with Edits; both algorithms use Ô( √ 𝑛𝑘) quantum queries. These running times are near-optimal for 𝑘 ≪ 𝑚 1/3 and 𝑘 ≪ 𝑚 1/6 , respectively, and they offer advantage over classical algorithms for 𝑘 ≪ (𝑚𝑛) 1/4 and 𝑘 ≪ (𝑚𝑛) 1/7 , respectively. Our solutions can also report the starting positions of all approximate occurrences of 𝑃 in 𝑇 (represented as collections of arithmetic progressions); in this case, both the unconditional lower bound and the complexities of our algorithms increase by a Θ( 𝑛/𝑚) factor.

As a major technical contribution, we give a faster algorithm to solve a system of 𝑏 substring equations of the

The goal is to construct a generic solution string whose characters are equal only when necessary. While this is known to be possible in 𝒪(𝑛 + 𝑏) time [Gawrychowski, Kociumaka, Radoszewski, Rytter, Wale ń; TCS'16], we show that Õ(𝑏 2 ) classical time is sufficient to obtain an Õ(𝑏)-size representation of 𝑆 that supports random access and other standard queries (of the so-called PILLAR model) in 𝒪(log 𝑛) time. We apply this tool to efficiently construct an Õ(𝑘)-size representation of strings 𝑃 # and 𝑇 # obtained from 𝑃 and 𝑇 by carefully masking out some characters so that the output to the studied approximate pattern matching problems does not change.

1 Throughout this paper, the Õ(•) and Ô(•) notations hide poly-logarithmic factors (log 𝑁) 𝒪(1) and sub-polynomial factors 𝑁 𝑜(1) , respectively, with respect to the total input size 𝑁 of the considered problems.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Pattern Matching under Weighted Edit Distance 引用了 Faster Pattern Matching under Edit Distance : A Reduction to Dynamic Puzzle Matching and the Seaweed Monoid of Permutation Matrices
  • Faster Pattern Matching under Edit Distance : A Reduction to Dynamic Puzzle Matching and the Seaweed Monoid of Permutation Matrices 引用了 Small-space and streaming pattern matching with k edits
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper1

  1. Pattern Matching under Weighted Edit DistancePanagiotis Charalampopoulos, Tomasz Kociumaka, Philip WellnitzFOCS 2025 · 3 次引用

它引用的 Paper7

  1. Small-space and streaming pattern matching with kk editsTomasz Kociumaka, Ely Porat, Tatiana StarikovskayaFOCS 2021 · 13 次引用
  2. Quantum Speed-ups for String Synchronizing Sets, Longest Common Substring, and k-mismatch MatchingCe Jin, Jakob NoglerSODA 2023 · 10 次引用
  3. 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 次引用
  4. Gap Edit Distance via Non-Adaptive Queries: Simple and OptimalElazar Goldenberg, Tomasz Kociumaka, Robert Krauthgamer, Barna SahaFOCS 2022 · 5 次引用
  5. Dynamically Maintaining the Persistent Homology of Time SeriesSebastiano Cultrera di Montesano, Herbert Edelsbrunner, Monika Henzinger, Lara OstSODA 2024 · 5 次引用

相关 Paper

  1. On the Communication Complexity of Approximate Pattern MatchingTomasz Kociumaka, Jakob Nogler, Philip WellnitzSTOC 2024 · 2 次引用
  2. Faster Approximate Pattern Matching: A Unified ApproachPanagiotis Charalampopoulos, Tomasz Kociumaka, Philip WellnitzFOCS 2020 · 2 次引用
  3. Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv FactorizationDaniel Gibney, Ce Jin, Tomasz Kociumaka, Sharma V. ThankachanSODA 2024 · 7 次引用
  4. Approximating text-to-pattern Hamming distancesTimothy M. Chan, Shay Golan, Tomasz Kociumaka, Tsvi Kopelowitz 等STOC 2020 · 2 次引用
  5. Near-Optimal Property Testers for Pattern MatchingCe Jin, Tomasz KociumakaFOCS 2025 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖