Lune

FOCS2025顶会

Pattern Matching under Weighted Edit Distance

Panagiotis Charalampopoulos, Tomasz Kociumaka, Philip Wellnitz

摘要

In Pattern Matching with Weighted Edits (PMwWE), we are given a pattern P of length m, a text T of length n, a positive threshold k, and oracle access to a weight function that specifies the costs of edits (depending on the involved characters, and normalized so that the cost of each edit is at least 1). The goal is to compute the starting positions of all fragments of T that can be obtained from P with edits of total cost at most k. PMwWE captures typical real-world applications more accurately than its unweighted variant (PMwE), where all edits have unit costs.Indeed, the textbook O(nm)\mathcal{O}\left( {nm} \right)-time algorithm of Sellers [J. Algorithms'80], devised in the context of bioinformatics, already accounts for weights. Surprisingly, the understanding of PMWWE has not advanced in the last 45 years. In contrast, significant milestones for PMwE include an O(nk)\mathcal{O}\left( {nk} \right)-time algorithm by Landau and Vishkin [STOC'86, J. Algorithms'89], an O(n+k4⋅n/m)\mathcal{O}(n + {k^4} \cdot n/m)-time algorithm by Cole and Hariharan [SODA'98, SICOMP'02], and a recent O~(n+k3.5⋅n/m)\tilde {\mathcal{O}}(n + {k^{3.5}} \cdot n/m)-time solution by Charalampopoulos, Kociumaka, and Wellnitz [FOCS'22].In this work, we examine whether these results can be lifted to PMWWE even though (1) the underlying algorithms rely on combinatorial properties specific to the unweighted edit distance, and (2) under standard fine-grained complexity assumptions, computing the weighted edit distance is strictly harder than computing the unweighted edit distance [Cassis, Kociumaka, and Wellnitz; FOCS'23]. We obtain three main results:•a conceptually simple O~(nk)\tilde {\mathcal{O}}\left( {nk} \right)-time algorithm for PMWWE, very different from that of Landau and Vishkin;•a significantly more complicated O~(n+k3.5⋅W4⋅n/m)\tilde {\mathcal{O}}(n + {k^{3.5}} \cdot {W^4} \cdot n/m) time algorithm for PMWWE under the assumption that the weight function is a metric with integer values between 0 and W; and•an O~(n+k4⋅n/m)\tilde {\mathcal{O}}(n + {k^4} \cdot n/m)-time algorithm for PMWWE for the case of arbitrary weights. In the setting of metrics with small integer values, we nearly match the state of the art for PMwE where W=1.

问 Lune

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

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

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • On the Communication Complexity of Approximate Pattern Matching 引用了 Faster Approximate Pattern Matching: A Unified Approach
  • On the Communication Complexity of Approximate Pattern Matching 引用了 Faster Pattern Matching under Edit Distance : A Reduction to Dynamic Puzzle Matching and the Seaweed Monoid of Permutation Matrices
  • On the Communication Complexity of Approximate Pattern Matching 引用了 Optimal Algorithms for Bounded Weighted Edit Distance
  • Faster Pattern Matching under Edit Distance : A Reduction to Dynamic Puzzle Matching and the Seaweed Monoid of Permutation Matrices 引用了 Faster Approximate Pattern Matching: A Unified Approach
  • Optimal Algorithms for Bounded Weighted Edit Distance 引用了 Weighted Edit Distance Computation: Strings, Trees, and Dyck
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper8

  1. 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 次引用
  2. Weighted Edit Distance Computation: Strings, Trees, and DyckDebarati Das, Jacob Gilbert, MohammadTaghi Hajiaghayi, Tomasz Kociumaka 等STOC 2023 · 4 次引用
  3. Optimal Algorithms for Bounded Weighted Edit DistanceAlejandro Cassis, Tomasz Kociumaka, Philip WellnitzFOCS 2023 · 4 次引用
  4. Faster Approximate Pattern Matching: A Unified ApproachPanagiotis Charalampopoulos, Tomasz Kociumaka, Philip WellnitzFOCS 2020 · 2 次引用
  5. On the Communication Complexity of Approximate Pattern MatchingTomasz Kociumaka, Jakob Nogler, Philip WellnitzSTOC 2024 · 2 次引用

相关 Paper

  1. Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer WeightsEgor Gorbachev, Tomasz KociumakaSTOC 2025 · 1 次引用
  2. Near-Optimal-Time Quantum Algorithms for Approximate Pattern MatchingTomasz Kociumaka, Jakob Nogler, Philip WellnitzSODA 2025 · 1 次引用
  3. Almost-optimal sublinear-time edit distance in the low distance regimeKarl Bringmann, Alejandro Cassis, Nick Fischer, Vasileios NakosSTOC 2022 · 4 次引用
  4. Near-Optimal Property Testers for Pattern MatchingCe Jin, Tomasz KociumakaFOCS 2025 · 1 次引用
  5. Small-space and streaming pattern matching with kk editsTomasz Kociumaka, Ely Porat, Tatiana StarikovskayaFOCS 2021 · 13 次引用
黄昏的海面,两侧是细线勾勒的悬崖