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 Õ(n) 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 off-the-shelf tools, it is possible to achieve an O(nᶜ)-approximation in n^{0.5-c+o(1)} update time for any constant c ∊ [0,1/6], but improving upon this trade-off remained open.
The contribution of this work is a dynamic n^{o(1)}-approximation algorithm with amortized expected update time of n^{o(1)}. In other words, we bring the approximation-ratio and update-time product down to n^{o(1)}. Our solution utilizes an elegant framework of precision sampling for edit distance approximation (Andoni, Krauthgamer, Onak; 2010).
Joint work with Anish Mukherjee and Barna Saha. Accepted to FOCS 2023. Available at https://arxiv.org/abs/2307.07175.