Approximating Edit Distance in the Fully Dynamic Model
摘要
The edit distance is a fundamental measure of sequence similarity, defined as the minimum number of character insertions, deletions, and substitutions needed to transform one string into the other. Given two strings of length at most n, a simple dynamic programming computes their edit distance exactly in time, which is also the best possible (up to subpolynomial factors) assuming the Strong Exponential Time Hypothesis (SETH). The last few decades have seen tremendous progress in edit distance approximation, where the runtime has been brought down to subquadratic, to near-linear, and even to sublinear at the cost of approximation. In this paper, we study the dynamic edit distance problem where the strings change dynamically as the characters are substituted, inserted, or deleted over time. Each change may happen at any location of either of the two strings. The goal is to maintain the (exact or approximate) edit distance of such dynamic strings while minimizing the update time. The exact edit distance can be maintained in time per update (Charalampopoulos, Kociumaka, Mozes; 2020), which is again tight assuming SETH. Unfortunately, even with the unprecedented progress in edit distance approximation in the static setting, strikingly little is known regarding dynamic edit distance approximation. Utilizing the best near-linear-time (Andoni, Nosatzki; 2020) and sublinear-time (Goldenberg, Kociumaka, Krauthgamer, Saha; 2022) approximation algorithm, an old exact algorithm (Landau and Vishkin; 1988), and a generic dynamic strings implementation (Mehlhorn, Sundar, Uhrig; 1996), it is possible to achieve an -approximation in update time for any constant . Improving upon this trade-off, characterized by the approximation-ratio and update-time product , remains wide open. The contribution of this work is a dynamic -approximation algorithm with amortized expected update time of . In other words, we bring the approximation-ratio and update-time product down to , which is also the best possible with the current state of the art in static algorithms. Our solution utilizes an elegant framework of precision sampling trees for edit distance approximation (Andoni, Krauthgamer, Onak; 2010). We show how to dynamically maintain precision sampling trees, which comes with significant nontriviality and can be an independent tool of interest for further development in dynamic string algorithms.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer Weights 引用了 Faster Sublinear-Time Edit Distance
- Dynamic Dyck and Tree Edit Distance: Decompositions and Reductions to String Edit Distance 引用了 Fast Dynamic Cuts, Distances and Effective Resistances via Vertex Sparsifiers
- Dynamic Dyck and Tree Edit Distance: Decompositions and Reductions to String Edit Distance 引用了 A Deterministic Algorithm for Balanced Cut with Applications to Dynamic Connectivity, Flows, and Beyond
- Dynamic Dyck and Tree Edit Distance: Decompositions and Reductions to String Edit Distance 引用了 Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer Weights
- Dynamic Dyck and Tree Edit Distance: Decompositions and Reductions to String Edit Distance 引用了 Edit Distance in Near-Linear Time: it's a Constant Factor
- Dynamic Dyck and Tree Edit Distance: Decompositions and Reductions to String Edit Distance 引用了 New algorithms and hardness for incremental single-source shortest paths in directed graphs
- Dynamic Dyck and Tree Edit Distance: Decompositions and Reductions to String Edit Distance 引用了 Deterministic Decremental Reachability, SCC, and Shortest Paths via Directed Expanders and Congestion Balancing
- Dynamic Dyck and Tree Edit Distance: Decompositions and Reductions to String Edit Distance 引用了 Dynamic Dynamic Time Warping
- Deterministic Decremental Reachability, SCC, and Shortest Paths via Directed Expanders and Congestion Balancing 引用了 A Deterministic Algorithm for Balanced Cut with Applications to Dynamic Connectivity, Flows, and Beyond
- Deterministic Decremental Reachability, SCC, and Shortest Paths via Directed Expanders and Congestion Balancing 引用了 New algorithms and hardness for incremental single-source shortest paths in directed graphs
- Faster Sublinear-Time Edit Distance 引用了 Edit Distance in Near-Linear Time: it's a Constant Factor
引用它的顶会 Paper4
- Dynamic Dynamic Time WarpingKarl Bringmann, Nick Fischer, Ivor van der Hoog, Evangelos Kipouridis 等SODA 2024 · 21 次引用
- Faster Sublinear-Time Edit DistanceKarl Bringmann, Alejandro Cassis, Nick Fischer, Tomasz KociumakaSODA 2024 · 3 次引用
- Bounded Edit Distance: Optimal Static and Dynamic Algorithms for Small Integer WeightsEgor Gorbachev, Tomasz KociumakaSTOC 2025 · 1 次引用
- Dynamic Dyck and Tree Edit Distance: Decompositions and Reductions to String Edit DistanceDebarati Das, Jacob Gilbert, MohammadTaghi Hajiaghayi, Tomasz Kociumaka 等FOCS 2025 · 1 次引用
它引用的 Paper22
- A Deterministic Algorithm for Balanced Cut with Applications to Dynamic Connectivity, Flows, and BeyondJulia Chuzhoy, Yu Gao, Jason Li, Danupon Nanongkai 等FOCS 2020 · 76 次引用
- Deterministic Decremental Reachability, SCC, and Shortest Paths via Directed Expanders and Congestion BalancingAaron Bernstein, Maximilian Probst Gutenberg, Thatchaphol SaranurakFOCS 2020 · 35 次引用
- Edit Distance in Near-Linear Time: it's a Constant FactorAlexandr Andoni, Negev Shekel NosatzkiFOCS 2020 · 28 次引用
- Fast Dynamic Cuts, Distances and Effective Resistances via Vertex SparsifiersLi Chen, Gramoz Goranci, Monika Henzinger, Richard Peng 等FOCS 2020 · 22 次引用
- New algorithms and hardness for incremental single-source shortest paths in directed graphsMaximilian Probst Gutenberg, Virginia Vassilevska Williams, Nicole WeinSTOC 2020 · 21 次引用
相关 Paper
- Optimal Algorithms for Bounded Weighted Edit DistanceAlejandro Cassis, Tomasz Kociumaka, Philip WellnitzFOCS 2023 · 4 次引用
- Weighted Edit Distance Computation: Strings, Trees, and DyckDebarati Das, Jacob Gilbert, MohammadTaghi Hajiaghayi, Tomasz Kociumaka 等STOC 2023 · 4 次引用
- Breaking the Cubic Barrier for (Unweighted) Tree Edit DistanceXiao MaoFOCS 2021 · 7 次引用
- Reducing approximate Longest Common Subsequence to approximate Edit DistanceAviad Rubinstein, Zhao SongSODA 2020 · 24 次引用
- Approximation Schemes for Edit Distance and LCS in Quasi-Strongly Subquadratic TimeXiao Mao, Aviad RubinsteinSTOC 2026 · 4 次引用
