On the Discrete Fr\'echet Distance in a Graph
Abstract
The Fr\'{e}chet distance is a well-studied similarity measure between curves that is widely used throughout computer science. Motivated by applications where curves stem from paths and walks on an underlying graph (such as a road network), we define and study the Fr\'{e}chet distance for paths and walks on graphs. When provided with a distance oracle of with query time, the classical quadratic-time dynamic program can compute the Fr\'{e}chet distance between two walks and in a graph in time. We show that there are situations where the graph structure helps with computing Fr\'{e}chet distance: when the graph is planar, we apply existing (approximate) distance oracles to compute a -approximation of the Fr\'{e}chet distance between any shortest path and any walk in time. We generalise this result to near-shortest paths, i.e. -straight paths, as we show how to compute a -approximation between a -straight path and any walk in time. Our algorithmic results hold for both the strong and the weak discrete Fr\'{e}chet distance over the shortest path metric in . Finally, we show that additional assumptions on the input, such as our assumption on path straightness, are indeed necessary to obtain truly subquadratic running time. We provide a conditional lower bound showing that the Fr\'{e}chet distance, or even its -approximation, between arbitrary \emph{paths} in a weighted planar graph cannot be computed in time for any unless the Orthogonal Vector Hypothesis fails. For walks, this lower bound holds even when is planar, unit-weight and has vertices.
Cite
@article{arxiv.2201.02121,
title = {On the Discrete Fr\'echet Distance in a Graph},
author = {Anne Driemel and Ivor van der Hoog and Eva Rotenberg},
journal= {arXiv preprint arXiv:2201.02121},
year = {2024}
}