Towards Efficient Interactive Computation of Dynamic Time Warping Distance

Akihiro Nishi, Yuto Nakashima, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

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 time and space. In this paper, we tackle the problem of interactive computation of the DTW distance for dynamic strings, denoted, 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 that occupies space and uses time to update a compact differential representation of the DP table per edit operation, where 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 time, and is faster when is smaller than which, as our preliminary experiments suggest, is likely to be the case in the majority of instances.

Original languageEnglish
Title of host publicationString Processing and Information Retrieval - 27th International Symposium, SPIRE 2020, Proceedings
EditorsChristina Boucher, Sharma V. Thankachan
PublisherSpringer Science and Business Media Deutschland GmbH
Pages27-41
Number of pages15
ISBN (Print)9783030592110
DOIs
Publication statusPublished - 2020
Event27th International Symposium on String Processing and Information Retrieval, SPIRE 2020 - Orlando, United States
Duration: Oct 13 2020Oct 15 2020

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume12303 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference27th International Symposium on String Processing and Information Retrieval, SPIRE 2020
CountryUnited States
CityOrlando
Period10/13/2010/15/20

All Science Journal Classification (ASJC) codes

  • Theoretical Computer Science
  • Computer Science(all)

Fingerprint Dive into the research topics of 'Towards Efficient Interactive Computation of Dynamic Time Warping Distance'. Together they form a unique fingerprint.

Cite this