English

Computing the Discrete Fr\'echet Distance in Subquadratic Time

Computational Geometry 2012-04-25 v1

Abstract

The Fr\'echet distance is a similarity measure between two curves AA and BB: Informally, it is the minimum length of a leash required to connect a dog, constrained to be on AA, and its owner, constrained to be on BB, as they walk without backtracking along their respective curves from one endpoint to the other. The advantage of this measure on other measures such as the Hausdorff distance is that it takes into account the ordering of the points along the curves. The discrete Fr\'echet distance replaces the dog and its owner by a pair of frogs that can only reside on nn and mm specific pebbles on the curves AA and BB, respectively. These frogs hop from a pebble to the next without backtracking. The discrete Fr\'echet distance can be computed by a rather straightforward quadratic dynamic programming algorithm. However, despite a considerable amount of work on this problem and its variations, there is no subquadratic algorithm known, even for approximation versions of the problem. In this paper we present a subquadratic algorithm for computing the discrete Fr\'echet distance between two sequences of points in the plane, of respective lengths mnm\le n. The algorithm runs in O(mnloglognlogn)O(\dfrac{mn\log\log n}{\log n}) time and uses O(n+m)O(n+m) storage. Our approach uses the geometry of the problem in a subtle way to encode legal positions of the frogs as states of a finite automata.

Keywords

Cite

@article{arxiv.1204.5333,
  title  = {Computing the Discrete Fr\'echet Distance in Subquadratic Time},
  author = {Pankaj K. Agarwal and Rinat Ben Avraham and Haim Kaplan and Micha Sharir},
  journal= {arXiv preprint arXiv:1204.5333},
  year   = {2012}
}
R2 v1 2026-06-21T20:53:58.357Z