游程编码字符串间动态时间弯曲距离的近似计算
Approximating Dynamic Time Warping Distance Between Run-Length Encoded Strings
摘要:
动态时间规整(DTW)是一种广泛使用的相似性度量,用于比较编码时间序列数据的字符串,其应用领域包括生物信息学,签名验证和语音识别。DTW的标准动态编程算法需要$O(n^2)$时间,并且存在条件下限,表明没有算法可以做得更好。然而,在许多应用程序中,字符串$x$和$y$可能包含长串的重复字母,这意味着它们可以使用行程长度编码进行压缩。一个自然的问题是这些压缩字符串之间的DTW距离是否可以根据压缩字符串的长度$k$和$\ell$有效地计算。最近的工作已经表明如何实现$O(k\ell^2 + \ell k^2)$时间,留下了一个开放的问题,是否可能存在一个近二次$\tilde{O}(k\ell)$时间算法。我们表明,如果一个小的近似损失是允许的,那么一个近二次时间算法确实是可能的:我们的算法计算$(1 + ε)$ -近似$DTW(x, y)$在$\tilde{O}(k\ell / ε^3)$的时间,其中$k$和$\ell$是在$x$和$y$运行的数量。我们的算法允许$DTW$计算在任何度量空间$(Σ, δ)$中的距离是$O(log(n))$位整数。令人惊讶的是,即使$δ$没有在$Σ$上引入度量空间(例如,$δ$不需要满足三角不等式)。
英文摘要:
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^2)$ time, and there are conditional lower bounds showing that no algorithm can do substantially better. In many applications, however, the strings $x$ and $y$ 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 $k$ and $\ell$ of the compressed strings. Recent work has shown how to achieve $O(k\ell^2 + \ell k^2)$ time, leaving open the question of whether a near-quadratic $\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 + ε)$-approximation for $DTW(x, y)$ in $\tilde{O}(k\ell / ε^3)$ time, where $k$ and $\ell$ are the number of runs in $x$ and $y$. Our algorithm allows for $DTW$ to be computed over any metric space $(Σ, δ)$ in which distances are $O(log(n))$-bit integers. Surprisingly, the algorithm also works even if $δ$ does not induce a metric space on $Σ$ (e.g., $δ$ need not satisfy the triangle inequality).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。