Lune

FOCS2021顶会

Small-space and streaming pattern matching with kk edits

Tomasz Kociumaka, Ely Porat, Tatiana Starikovskaya

摘要

In this work, we revisit the fundamental and well-studied problem of approximate pattern matching under edit distance. Given an integerkk, a patternPPof lengthmm, and a textTTof lengthn≥mn\geq m, the task is to find substrings ofTTthat are within edit distancekkfromPP. Our main result is a streaming algorithm that solves the problem inO~(k5)\tilde{\mathcal{O}}(k^{5})space11Hereafter,O~(⋅)\tilde{\mathcal{O}}(\cdot)hides apoly(log⁡n)\text{poly} (\log n)factor. andO~(k8)\tilde{\mathcal{O}}(k^{8})amortized time per character of the text, providing answers correct with high probability. This answers a decade-old question: since the discovery of a poly (k log nk\ \text{log}\ n) -space streaming algorithm for pattern matching under Hamming distance by Porat and Porat [FOCS 2009], the existence of an analogous result for edit distance remained open. Up to this work, no poly (k log nk\ \text{log}\ n)-space algorithm was known even in the simpler semi-streaming model, whereTTcomes as a stream butPPis available for read-only access. In this model, we give a deterministic algorithm that achieves slightly better complexity. Our central technical contribution is a new space-efficient deterministic encoding of two strings, called the greedy encoding, which encodes a set of all alignments of cost at mostkkwith a certain property (we call such alignments greedy). On strings of length at mostnn, the encoding occupiesO~(k2)\tilde{\mathcal{O}}(k^{2})space. We use the encoding to compress substrings of the text that are close to the pattern. In order to do so, we compute the encoding for substrings of the text and of the pattern, which requires read-only access to the latter. In order to develop the fully streaming algorithm, we further introduce a new edit distance sketch parameterized by integersn>kn > k. For any string of length at mostnn, the sketch is of sizeO~(k‾2)\tilde{\mathcal{O}}\overline{(k}^{2}), and it can be computed with anO~(k2)\tilde{\mathcal{O}}(k^{2})-space streaming algorithm. Given the sketches of two strings, inO~(k3)\tilde{\mathcal{O}}(k^{3})time we can compute their edit distance or certify that it is larger thankk. This result improves uponO~(k8)\tilde{\mathcal{O}}(k^{8})-size sketches of Belazzougui and Zhang [FOCS 2016] and very recentO~(k3)\tilde{\mathcal{O}}(k^{3})-size sketches of Jin, Nelson, and Wu [STACS 2021].

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Faster Approximate Pattern Matching: A Unified Approach 引用了 Approximating text-to-pattern Hamming distances
  • Faster Approximate Pattern Matching: A Unified Approach 引用了 Resolution of the Burrows-Wheeler Transform Conjecture
  • Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv Factorization 引用了 Resolution of the Burrows-Wheeler Transform Conjecture
  • 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
  • Faster Pattern Matching under Edit Distance : A Reduction to Dynamic Puzzle Matching and the Seaweed Monoid of Permutation Matrices 引用了 Approximating text-to-pattern Hamming distances
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper10

  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. Near-Optimal Quantum Algorithms for Bounded Edit Distance and Lempel-Ziv FactorizationDaniel Gibney, Ce Jin, Tomasz Kociumaka, Sharma V. ThankachanSODA 2024 · 7 次引用
  3. Õ(n+poly(k))-time Algorithm for Bounded Tree Edit DistanceDebarati Das, Jacob Gilbert, MohammadTaghi Hajiaghayi, Tomasz Kociumaka 等FOCS 2022 · 5 次引用
  4. Streaming Regular Expression Membership and Pattern MatchingBartlomiej Dudek, Pawel Gawrychowski, Garance Gourdel, Tatiana StarikovskayaSODA 2022 · 4 次引用
  5. Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic TimeXiao Mao, Aviad RubinsteinSTOC 2026 · 4 次引用

它引用的 Paper3

  1. Resolution of the Burrows-Wheeler Transform ConjectureDominik Kempa, Tomasz KociumakaFOCS 2020 · 32 次引用
  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. Sublinear-Time Algorithms for Computing & Embedding Gap Edit DistanceTomasz Kociumaka, Barna SahaFOCS 2020 · 9 次引用
  2. Almost Linear Size Edit Distance SketchMichal Koucký, Michael E. SaksSTOC 2024 · 1 次引用
  3. Near-Optimal-Time Quantum Algorithms for Approximate Pattern MatchingTomasz Kociumaka, Jakob Nogler, Philip WellnitzSODA 2025 · 1 次引用
  4. Almost-optimal sublinear-time edit distance in the low distance regimeKarl Bringmann, Alejandro Cassis, Nick Fischer, Vasileios NakosSTOC 2022 · 4 次引用
  5. Optimal Algorithms for Bounded Weighted Edit DistanceAlejandro Cassis, Tomasz Kociumaka, Philip WellnitzFOCS 2023 · 4 次引用
黄昏的海面,两侧是细线勾勒的悬崖