Skip to search boxSkip to navigationSkip to main content

Dynamic Dynamic Time Warping.

  • Max Planck Institute for Informatics
    ,
  • Saarland University
    ,
  • The Weizmann institute of science
    ,
  • Technical University of Denmark
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Open access

Publication Information

Output type

Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Original language

Undefined/Unknown

Pages from-to (Number of pages)

Pages 208-242 (35 pages)

Publication milestones

  • Published - 2024

Publication status

Published - 2024

Publication IDs

  • Scopus: 85188335646

Host publication title

SODA

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(n2) time in constant dimension. This tightly matches a SETH-based lower bound, even for curves in ℝ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(n15 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 ℝ1, there is no dynamic algorithm to maintain the DTW distance with update and query time O(n1.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.

Publication metrics

PlumX, opens in new tab

Captures
282
Citations
24

Related Event

Title

ACM‑SIAM Symposium on Discrete Algorithms

Event type

Symposium

Date

07/01/2024 - 10/01/2024

Location

The Westin Alexandria Old TownAlexandriaUnited States