We prove conditional lower bounds for approximating dynamic time warping (DTW) over the uniform metric. Let $N,M$ be the lengths of the two strings and $n,m$ their numbers of runs. Under the Gap Block Disjointness Hypothesis, no deterministic algorithm $O(N^{\varepsilon})$-approximates DTW on two strings of length $N$ over three symbols in $\widetilde O(N^{2-δ})$ time for any constants $δ\in(0,1]$ and $\varepsilon\in[0,δ/3)$. In particular, no deterministic constant-factor approximation runs in strongly subquadratic time. For run-length encoded strings with $n=m$, the Orthogonal Vectors Hypothesis rules out every constant-factor approximation in $\widetilde O((nm)^{1-δ})$ time for every constant $δ>0$. It also rules out $(N+M)^{1-η}$-approximation in this time for every constant $η\in(0,1)$. The bounds extend to every fixed metric with at least three points, including absolute distance on $\{0,1,2\}$. Both reductions use long runs to force equal-symbol matches on low-cost paths. For explicit strings, Boolean gadgets encode the source predicate. A deterministic disperser-based density amplification then yields the polynomial gap. For run-length encoded strings, we encode regular-expression membership so that the gap grows without adding runs.
翻译:暂无翻译