arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1904.09690cs.DS
收藏

强次二次时间上的动态时间弯曲:低距离区域算法和近似估计

Dynamic Time Warping in Strongly Subquadratic Time: Algorithms for the Low-Distance Regime and Approximate Evaluation

William Kuszmaul

摘要:

动态时间规整距离(DTW)是一种广泛使用的时间序列间距离度量。最著名的算法计算DTW运行在近二次时间,和条件下限禁止存在显着更快的算法。然而,对于DTW很小的特殊情况,下限并不妨碍更快的算法。对于任意度量空间$Σ$,将距离归一化,使得最小非零距离为1,本文给出了一个计算$Σ$上两个字符串$x$和$y$在时间$O(n \cdot \operatorname{dtw}(x, y))$上的$\operatorname{dtw}(x, y)$的算法.我们还提出了一个近似算法,计算$\operatorname{dtw}(x, y)$内的一个因素的$O(n^ε)$在时间$\tilde{O}(n^{2 - ε})$为$0 < ε< 1$。该算法允许字符串$x$和$y$被带到一个任意的良好分离的树度量与对数深度和最多指数纵横比。进一步扩展我们的技术,我们还获得了第一近似算法的编辑距离与字符从任意度量空间,提供了一个$n^ε$近似的时间$\tilde{O}(n^{2 - ε})$,具有很高的概率。此外,我们提出了一个简单的减少从计算编辑距离计算DTW。将我们的约化应用于关于$\{0, 1\}$上的编辑距离的Bringmann和Künnemann的条件下界,我们获得了计算DTW的条件下界超过三个字母的字母表(距离为0和1)。这改进了Abboud,Backurs和Williams之前的结果。使用类似的方法,我们证明了从计算编辑距离到计算最长LCS长度的减少。这意味着可以直接从编辑距离的条件下限恢复LCS的条件下限,这在以前并不被认为是这种情况。

英文摘要:

Dynamic time warping distance (DTW) is a widely used distance measure between time series. The best known algorithms for computing DTW run in near quadratic time, and conditional lower bounds prohibit the existence of significantly faster algorithms. The lower bounds do not prevent a faster algorithm for the special case in which the DTW is small, however. For an arbitrary metric space $Σ$ with distances normalized so that the smallest non-zero distance is one, we present an algorithm which computes $\operatorname{dtw}(x, y)$ for two strings $x$ and $y$ over $Σ$ in time $O(n \cdot \operatorname{dtw}(x, y))$. We also present an approximation algorithm which computes $\operatorname{dtw}(x, y)$ within a factor of $O(n^ε)$ in time $\tilde{O}(n^{2 - ε})$ for $0 < ε< 1$. The algorithm allows for the strings $x$ and $y$ to be taken over an arbitrary well-separated tree metric with logarithmic depth and at most exponential aspect ratio. Extending our techniques further, we also obtain the first approximation algorithm for edit distance to work with characters taken from an arbitrary metric space, providing an $n^ε$-approximation in time $\tilde{O}(n^{2 - ε})$, with high probability. Additionally, we present a simple reduction from computing edit distance to computing DTW. Applying our reduction to a conditional lower bound of Bringmann and Künnemann pertaining to edit distance over $\{0, 1\}$, we obtain a conditional lower bound for computing DTW over a three letter alphabet (with distances of zero and one). This improves on a previous result of Abboud, Backurs, and Williams. With a similar approach, we prove a reduction from computing edit distance to computing longest LCS length. This means that one can recover conditional lower bounds for LCS directly from those for edit distance, which was not previously thought to be the case.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑