Abstract
Dynamic Time Warping (DTW) distance is the optimal cost of matching two strings when extending runs of letters is for free. Therefore, it is natural to measure the time complexity of DTW in terms of the number of runs n (rather than the string lengths N). In this paper, we give an Õ(n2) time algorithm for computing the DTW distance. This matches (up to log factors) the known (conditional) lower bound, and should be compared with the previous fastest O(n3) time exact algorithm and the Õ(n2) time approximation algorithm. Our method also immediately implies an Õ(nk) time algorithm when the distance is bounded by k. This should be compared with the previous fastest O(n2k) and O(Nk) time exact algorithms and the Õ(nk) time approximation algorithm.
Original language | English |
---|---|
Title of host publication | 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024 |
Editors | Karl Bringmann, Martin Grohe, Gabriele Puppis, Ola Svensson |
Publisher | Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing |
ISBN (Electronic) | 9783959773225 |
DOIs | |
State | Published - Jul 2024 |
Externally published | Yes |
Event | 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024 - Tallinn, Estonia Duration: 8 Jul 2024 → 12 Jul 2024 |
Publication series
Name | Leibniz International Proceedings in Informatics, LIPIcs |
---|---|
Volume | 297 |
ISSN (Print) | 1868-8969 |
Conference
Conference | 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024 |
---|---|
Country/Territory | Estonia |
City | Tallinn |
Period | 8/07/24 → 12/07/24 |
Bibliographical note
Publisher Copyright:© Itai Boneh, Shay Golan, Shay Mozes, and Oren Weimann.
Keywords
- Dynamic time warping
- edit distance
- Fréchet distance
- run-length encoding