On the Discrete Fréchet Distance in a Graph

01/06/2022
by   Anne Driemel, et al.
0

The Fré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échet distance for paths and walks on graphs. When provided with a distance oracle of G with O(1) query time, the classical quadratic-time dynamic program can compute the Fréchet distance between two walks P and Q in a graph G in O(|P| · |Q|) time. We show that there are situations where the graph structure helps with computing Fréchet distance: when the graph G is planar, we apply existing (approximate) distance oracles to compute a (1+ε)-approximation of the Fréchet distance between any shortest path P and any walk Q in O(|G| log |G| / √(ε) + |P| + |Q|/ε ) time. We generalise this result to near-shortest paths, i.e. κ-straight paths, as we show how to compute a (1+ε)-approximation between a κ-straight path P and any walk Q in O(|G| log |G| / √(ε) + |P| + κ|Q|/ε ) time. Our algorithmic results hold for both the strong and the weak discrete Fréchet distance over the shortest path metric in G. 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échet distance, or even its 1.01-approximation, between arbitrary paths in a weighted planar graph cannot be computed in O((|P|·|Q|)^1-δ) time for any δ > 0 unless the Orthogonal Vector Hypothesis fails. For walks, this lower bound holds even when G is planar, unit-weight and has O(1) vertices.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/30/2020

Truly Subquadratic Exact Distance Oracles with Constant Query Time for Planar Graphs

Given an undirected, unweighted planar graph G with n vertices, we prese...
research
10/23/2017

Probabilistic Pursuits on Graphs

We consider discrete dynamical systems of "ant-like" agents engaged in a...
research
07/23/2018

SETH Says: Weak Fréchet Distance is Faster, but only if it is Continuous and in One Dimension

We show by reduction from the Orthogonal Vectors problem that algorithms...
research
05/09/2016

On the Emergence of Shortest Paths by Reinforced Random Walks

The co-evolution between network structure and functional performance is...
research
12/07/2020

LCS Graph Kernel Based on Wasserstein Distance in Longest Common Subsequence Metric Space

For graph classification tasks, many methods use a common strategy to ag...
research
03/17/2021

Sublinear Average-Case Shortest Paths in Weighted Unit-Disk Graphs

We consider the problem of computing shortest paths in weighted unit-dis...
research
04/10/2023

Path-Reporting Distance Oracles with Near-Logarithmic Stretch and Linear Size

Given an n-vertex undirected graph G=(V,E,w), and a parameter k≥1, a pat...

Please sign up or login with your details

Forgot password? Click here to reset