Õptimal Dynamic Time Warping on Run-Length Encoded Strings

Itai Boneh, Shay Golan, Shay Mozes, Oren Weimann

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

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 languageEnglish
Title of host publication51st International Colloquium on Automata, Languages, and Programming, ICALP 2024
EditorsKarl Bringmann, Martin Grohe, Gabriele Puppis, Ola Svensson
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (Electronic)9783959773225
DOIs
StatePublished - Jul 2024
Externally publishedYes
Event51st International Colloquium on Automata, Languages, and Programming, ICALP 2024 - Tallinn, Estonia
Duration: 8 Jul 202412 Jul 2024

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume297
ISSN (Print)1868-8969

Conference

Conference51st International Colloquium on Automata, Languages, and Programming, ICALP 2024
Country/TerritoryEstonia
CityTallinn
Period8/07/2412/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

Fingerprint

Dive into the research topics of 'Õptimal Dynamic Time Warping on Run-Length Encoded Strings'. Together they form a unique fingerprint.

Cite this