Towards Efficient Interactive Computation of Dynamic Time Warping Distance

05/17/2020
by   Akihiro Nishi, et al.
0

The dynamic time warping (DTW) is a widely-used method that allows us to efficiently compare two time series that can vary in speed. Given two strings A and B of respective lengths m and n, there is a fundamental dynamic programming algorithm that computes the DTW distance for A and B together with an optimal alignment in Θ(mn) time and space. In this paper, we tackle the problem of interactive computation of the DTW distance for dynamic strings, denoted D^2TW, where character-wise edit operation (insertion, deletion, substitution) can be performed at an arbitrary position of the strings. Let M and N be the sizes of the run-length encoding (RLE) of A and B, respectively. We present an algorithm for D^2TW that occupies Θ(mN+nM) space and uses O(m+n+#_chg) ⊆ O(mN + nM) time to update a compact differential representation 𝐷𝑆 of the DP table per edit operation, where #_chg denotes the number of cells in 𝐷𝑆 whose values change after the edit operation. Our method is at least as efficient as the algorithm recently proposed by Froese et al. running in Θ(mN + nM) time, and is faster when #_chg is smaller than O(mN + nM) which, as our preliminary experiments suggest, is likely to be the case in the majority of instances.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/23/2018

Longest Common Factor Made Fully Dynamic

In the longest common factor (LCF) problem, we are given two strings S a...
research
06/12/2018

Indexed Dynamic Programming to boost Edit Distance and LCSS Computation

There are efficient dynamic programming solutions to the computation of ...
research
03/11/2021

Imagined-Trailing-Whitespace-Agnostic Levenshtein Distance For Plaintext Table Detection

The standard algorithm for Levenshtein distance, treats trailing whitesp...
research
08/10/2018

Dynamic all scores matrices for LCS score

The problem of aligning two strings A,B in order to determine their simi...
research
07/02/2022

Approximating Dynamic Time Warping Distance Between Run-Length Encoded Strings

Dynamic Time Warping (DTW) is a widely used similarity measure for compa...
research
11/13/2022

Bounds and Estimates on the Average Edit Distance

The edit distance is a metric of dissimilarity between strings, widely a...
research
07/31/2020

Improved Time Warp Edit Distance – A Parallel Dynamic Program in Linear Memory

Edit Distance is a classic family of dynamic programming problems, among...

Please sign up or login with your details

Forgot password? Click here to reset