Skip to content

A Simple Bootstrap for Constant-Factor Approximation of the Discrete Fréchet Distance

Matthew J. Katz

cs.CG

Abstract

We give a simple deterministic hierarchy of constant-factor approximation algorithms for the discrete Fréchet distance between two polygonal curves with nn vertices each in fixed dimension dd. For every fixed integer r≥1r\ge1 and every ε>0\varepsilon>0, the hierarchy yields a (2r+1−1+ε)(2^{r+1}-1+\varepsilon)-approximation in time O~d,r,ε(n3/2+1/(4r+2)){\widetilde O}_{d,r,\varepsilon}\left(n^{3/2+1/(4r+2)}\right). In particular, we obtain a (7+ε)(7+\varepsilon)-approximation in O~d,ε(n8/5){\widetilde O}_{d,\varepsilon}(n^{8/5}) time. More generally, for any fixed γ>0γ>0, we obtain a constant-factor approximation in O~(n3/2+γ){\widetilde O}(n^{3/2+γ}) time, with an approximation factor of 2O(1/γ)2^{O(1/γ)}. The main ingredient of our approach is a simple bootstrap for approximate reachability queries in the discrete free-space matrix. Suppose that two curves with at most mm vertices each can be preprocessed independently in O~(m2){\widetilde O}(m^2) time per curve, so that reachability queries can be answered in O~(mp){\widetilde O}(m^p) time with approximation factor cc. We show how to improve the query time to O~(m2−1/p){\widetilde O}(m^{2-1/p}) at the expense of increasing the approximation factor to 2c+12c+1, while maintaining the same preprocessing bound. Starting with the standard quadratic-time exact procedure, we apply this transformation repeatedly. Only then do we partition the original nn-vertex curves into blocks and apply the resulting reachability procedure to each pair of blocks.

Create a lesson