Papers
Topics
Authors
Recent
Search
2000 character limit reached

Approximating Dynamic Time Warping Distance Between Run-Length Encoded Strings

Published 2 Jul 2022 in cs.DS | (2207.00915v1)

Abstract: Dynamic Time Warping (DTW) is a widely used similarity measure for comparing strings that encode time series data, with applications to areas including bioinformatics, signature verification, and speech recognition. The standard dynamic-programming algorithm for DTW takes O(n<sup>2)O(n<sup>2) time, and there are conditional lower bounds showing that no algorithm can do substantially better. In many applications, however, the strings xx and yy may contain long runs of repeated letters, meaning that they can be compressed using run-length encoding. A natural question is whether the DTW-distance between these compressed strings can be computed efficiently in terms of the lengths kk and ℓ\ell of the compressed strings. Recent work has shown how to achieve O(kℓ<sup>2</sup>+ℓk<sup>2)O(k\ell<sup>2</sup> + \ell k<sup>2) time, leaving open the question of whether a near-quadratic O~(kℓ)\tilde{O}(k\ell)-time algorithm might exist. We show that, if a small approximation loss is permitted, then a near-quadratic time algorithm is indeed possible: our algorithm computes a (1+ϵ)(1 + \epsilon)-approximation for DTW(x,y)DTW(x, y) in O~(kℓ/ϵ<sup>3)\tilde{O}(k\ell / \epsilon<sup>3) time, where kk and ℓ\ell are the number of runs in xx and yy. Our algorithm allows for DTWDTW to be computed over any metric space (Σ,δ)(\Sigma, \delta) in which distances are O(log(n))O(log(n))-bit integers. Surprisingly, the algorithm also works even if δ\delta does not induce a metric space on Σ\Sigma (e.g., δ\delta need not satisfy the triangle inequality).

Authors (2)
Citations (3)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.