Lune

FOCS2022顶会

Faster Pattern Matching under Edit Distance : A Reduction to Dynamic Puzzle Matching and the Seaweed Monoid of Permutation Matrices

Panagiotis Charalampopoulos, Tomasz Kociumaka, Philip Wellnitz

摘要

We consider the approximate pattern matching problem under the edit distance. Given a text T of length n, a pattern P of length m, and a threshold k, the task is to find the starting positions of all substrings of T that can be transformed to P with at most k edits. More than 20 years ago, Cole and Hariharan [SODA’98, J. Comput.’02] gave an O(n+k4⋅n/m)\mathcal{O}(n+k^{4}\cdot n/m) time algorithm for this classic problem, and this runtime has not been improved since.Here, we present an algorithm that runs in time O(n+k3.5log⁡mlog⁡k⋅n/m)\mathcal{O}\left(n+ k^{3.5}\sqrt{\log m\log k}\cdot n/m\right), thus breaking through this longstanding barrier. In the case where n1/4+ε≤k≤n2/5−εn^{1/4+\varepsilon}\leq k\leq n^{2/5-\varepsilon} for some arbitrarily small positive constant ε\varepsilon, our algorithm improves over the state-of-the-art by polynomial factors: it is polynomially faster than both the algorithm of Cole and Hariharan and the classic O(kn)\mathcal{O}(kn)-time algorithm of Landau and Vishkin [STOC’86, J. Algorithms’89].We observe that the bottleneck case of the alternative O(n+k4⋅n/m\mathcal{O}(n+k^4 \cdot n / m-time algorithm of Charalampopoulos, Kociumaka, and Wellnitz [FOCS’20] is when the text and the pattern are (almost) periodic. Our new algorithm reduces this case to a new Dynamic Puzzle Matching problem, which we solve by building on tools developed by Tiskin [SODA’10, Algorithmica’15] for the so-called seaweed monoid of permutation matrices. Our algorithm relies only on a small set of primitive operations on strings and thus also applies to the fully-compressed setting (where text and pattern are given as straight-line programs) and to the dynamic setting (where we maintain a collection of strings under creation, splitting, and concatenation), improving over the state of the art.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Pattern Matching under Weighted Edit Distance 引用了 Faster Approximate Pattern Matching: A Unified Approach
  • Pattern Matching under Weighted Edit Distance 引用了 Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer Weights
  • Pattern Matching under Weighted Edit Distance 引用了 On the Communication Complexity of Approximate Pattern Matching
  • Pattern Matching under Weighted Edit Distance 引用了 Near-Optimal-Time Quantum Algorithms for Approximate Pattern Matching
  • Faster Approximate Pattern Matching: A Unified Approach 引用了 Approximating text-to-pattern Hamming distances
  • Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer Weights 引用了 Faster Approximate Pattern Matching: A Unified Approach
  • On the Communication Complexity of Approximate Pattern Matching 引用了 Faster Approximate Pattern Matching: A Unified Approach
  • On the Communication Complexity of Approximate Pattern Matching 引用了 Small-space and streaming pattern matching with k edits
  • Small-space and streaming pattern matching with k edits 引用了 Faster Approximate Pattern Matching: A Unified Approach
  • Small-space and streaming pattern matching with k edits 引用了 Approximating text-to-pattern Hamming distances
  • Lempel-Ziv (LZ77) Factorization in Sublinear Time 引用了 Faster Approximate Pattern Matching: A Unified Approach
  • Near-Optimal-Time Quantum Algorithms for Approximate Pattern Matching 引用了 Faster Approximate Pattern Matching: A Unified Approach
  • Near-Optimal-Time Quantum Algorithms for Approximate Pattern Matching 引用了 On the Communication Complexity of Approximate Pattern Matching
  • Near-Optimal-Time Quantum Algorithms for Approximate Pattern Matching 引用了 Small-space and streaming pattern matching with k edits
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. Pattern Matching under Weighted Edit DistancePanagiotis Charalampopoulos, Tomasz Kociumaka, Philip WellnitzFOCS 2025 · 3 次引用
  2. On the Communication Complexity of Approximate Pattern MatchingTomasz Kociumaka, Jakob Nogler, Philip WellnitzSTOC 2024 · 2 次引用
  3. Lempel-Ziv (LZ77) Factorization in Sublinear TimeDominik Kempa, Tomasz KociumakaFOCS 2024 · 2 次引用
  4. Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer WeightsEgor Gorbachev, Tomasz KociumakaSTOC 2025 · 1 次引用
  5. Near-Optimal-Time Quantum Algorithms for Approximate Pattern MatchingTomasz Kociumaka, Jakob Nogler, Philip WellnitzSODA 2025 · 1 次引用

它引用的 Paper3

  1. Small-space and streaming pattern matching with kk editsTomasz Kociumaka, Ely Porat, Tatiana StarikovskayaFOCS 2021 · 13 次引用
  2. Faster Approximate Pattern Matching: A Unified ApproachPanagiotis Charalampopoulos, Tomasz Kociumaka, Philip WellnitzFOCS 2020 · 2 次引用
  3. Approximating text-to-pattern Hamming distancesTimothy M. Chan, Shay Golan, Tomasz Kociumaka, Tsvi Kopelowitz 等STOC 2020 · 2 次引用

相关 Paper

  1. Optimal Algorithms for Bounded Weighted Edit DistanceAlejandro Cassis, Tomasz Kociumaka, Philip WellnitzFOCS 2023 · 4 次引用
  2. Near-Optimal Property Testers for Pattern MatchingCe Jin, Tomasz KociumakaFOCS 2025 · 1 次引用
  3. Sublinear-Time Algorithms for Computing & Embedding Gap Edit DistanceTomasz Kociumaka, Barna SahaFOCS 2020 · 9 次引用
  4. Faster Sublinear-Time Edit DistanceKarl Bringmann, Alejandro Cassis, Nick Fischer, Tomasz KociumakaSODA 2024 · 3 次引用
  5. Faster Algorithms for Text-to-Pattern Hamming DistancesTimothy M. Chan, Ce Jin, Virginia Vassilevska Williams, Yinzhan XuFOCS 2023 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖