Dynamic Dynamic Time Warping
Karl Bringmann, Nick Fischer, Ivor van der Hoog, Evangelos Kipouridis, Tomasz Kociumaka, Eva Rotenberg
Abstract
The Dynamic Time Warping (DTW) distance is a popular similarity measure for polygonal curves (i.e., sequences of points). It finds many theoretical and practical applications, especially for temporal data, and is known to be a robust, outlier-insensitive alternative to the Fréchet distance. For static curves of at most n points, the DTW distance can be computed in O(n 2 ) time in constant dimension. This tightly matches a SETH-based lower bound, even for curves in R 1 .
In this work, we study dynamic algorithms for the DTW distance. Here, the goal is to design a data structure that can be efficiently updated to accommodate local changes to one or both curves, such as inserting or deleting vertices and, after each operation, reports the updated DTW distance. We give such a data structure with update and query time O(n 1.5 log n), where n is the maximum length of the curves.
As our main result, we prove that our data structure is conditionally optimal, up to subpolynomial factors. More precisely, we prove that, already for curves in R 1 , there is no dynamic algorithm to maintain the DTW distance with update and query time O(n 1.5-δ ) for any constant δ > 0, unless the Negative-k-Clique Hypothesis fails. In fact, we give matching upper and lower bounds for various trade-offs between update and query time, even in cases where the lengths of the curves differ.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext bb46860f-1991-4ef8-87e8-b3118fe639cbCited by top-tier papers5
- Dynamic Dyck and Tree Edit Distance: Decompositions and Reductions to String Edit DistanceDebarati Das, Jacob Gilbert, MohammadTaghi Hajiaghayi, Tomasz Kociumaka et al.FOCS 2025 · 1 citation
- One Video to Steal Them All: 3D-Printing IP Theft through Optical Side-ChannelsTwisha Chattopadhyay, Fabricio Ceschin, Marco E. Garza, Dymytriy Zyunkin et al.CCS 2025 · 1 citation
- Cross-Sample Augmented Test-Time Adaptation for Personalized Intraoperative Hypotension PredictionKanxue Li, Yibing Zhan, Hua Jin, Chongchong Qi et al.AAAI 2026 · 1 citation
- Fine-Grained Optimality of Partially Dynamic Shortest Paths and MoreBarna Saha, Virginia Vassilevska Williams, Yinzhan Xu, Christopher YeSODA 2025
- The Complexity of Dynamic LZ77 is ?Θ(n2/3)Itai Boneh, Shay Golan, Matan KrausSODA 2026
Builds on5
- Tight Bounds for Approximate Near Neighbor Searching for Time Series under the Fréchet DistanceKarl Bringmann, Anne Driemel, André Nusser, Ioannis PsarrosSODA 2022 · 5 citations
- Optimal Algorithms for Bounded Weighted Edit DistanceAlejandro Cassis, Tomasz Kociumaka, Philip WellnitzFOCS 2023 · 4 citations
- Static and Streaming Data Structures for Fréchet Distance QueriesArnold Filtser, Omrit FiltserSODA 2021 · 2 citations
- Approximating Edit Distance in the Fully Dynamic ModelTomasz Kociumaka, Anish Mukherjee, Barna SahaFOCS 2023 · 1 citation
- A Subquadratic nε-approximation for the Continuous Fréchet DistanceThijs van der Horst, Marc J. van Kreveld, Tim Ophelders, Bettina SpeckmannSODA 2023 · 1 citation
Related papers
- Improved Learning via k-DTW: A Novel Dissimilarity Measure for CurvesAmer Krivosija, Alexander Munteanu, André Nusser, Chris SchwiegelshohnICML 2025
- Fréchet Distance in Subquadratic TimeSiu-Wing Cheng, Haoqiang HuangSODA 2025 · 2 citations
- Deterministic Incremental APSP with Polylogarithmic Update Time and StretchSebastian Forster, Yasamin Nazari, Maximilian Probst GutenbergSTOC 2023 · 2 citations
- Dynamic 3D Convex Hulls Revisited and ApplicationsHaitao WangSODA 2026
- Constant Approximation of Fréchet Distance in Strongly Subquadratic TimeSiu-Wing Cheng, Haoqiang Huang, Shuo ZhangSTOC 2025 · 1 citation
