[Paper Review] Why walking the dog takes time: Frechet distance has no strongly subquadratic algorithms unless SETH fails
This paper proves that computing the Fréchet distance between two polygonal curves cannot be done in strongly subquadratic time, i.e., O(n²⁻δ) for any δ > 0, unless the Strong Exponential Time Hypothesis (SETH) fails. The result applies to both continuous and discrete Fréchet distance, establishing a tight conditional lower bound based on SETH, implying that existing O(n²) algorithms are likely optimal up to logarithmic factors.
The Frechet distance is a well-studied and very popular measure of similarity of two curves. Many variants and extensions have been studied since Alt and Godau introduced this measure to computational geometry in 1991. Their original algorithm to compute the Frechet distance of two polygonal curves with n vertices has a runtime of O(n^2 log n). More than 20 years later, the state of the art algorithms for most variants still take time more than O(n^2 / log n), but no matching lower bounds are known, not even under reasonable complexity theoretic assumptions. To obtain a conditional lower bound, in this paper we assume the Strong Exponential Time Hypothesis or, more precisely, that there is no O*((2-delta)^N) algorithm for CNF-SAT for any delta > 0. Under this assumption we show that the Frechet distance cannot be computed in strongly subquadratic time, i.e., in time O(n^{2-delta}) for any delta > 0. This means that finding faster algorithms for the Frechet distance is as hard as finding faster CNF-SAT algorithms, and the existence of a strongly subquadratic algorithm can be considered unlikely. Our result holds for both the continuous and the discrete Frechet distance. We extend the main result in various directions. Based on the same assumption we (1) show non-existence of a strongly subquadratic 1.001-approximation, (2) present tight lower bounds in case the numbers of vertices of the two curves are imbalanced, and (3) examine realistic input assumptions (c-packed curves).
Motivation & Objective
- To establish a conditional lower bound for the Fréchet distance computation under the Strong Exponential Time Hypothesis (SETH).
- To close the gap between the best-known algorithms (O(n²)) and the absence of any known subquadratic algorithms.
- To extend the lower bound to approximation algorithms and realistic input models such as c-packed curves.
- To investigate whether faster algorithms for Fréchet distance are possible under widely accepted complexity assumptions.
Proposed method
- Reduction from CNF-SAT to the Fréchet distance problem under the assumption that no O*((2−δ)^N) algorithm exists for CNF-SAT for any δ > 0.
- Construction of two polygonal curves with specific geometric and combinatorial properties to simulate CNF-SAT instances.
- Use of a carefully designed parameterization involving ε, N, M, and curve complexity to ensure correctness and tightness of the reduction.
- Analysis of the Fréchet distance between the constructed curves to show it is small if and only if the CNF formula is satisfiable.
- Extension of the reduction to handle approximation algorithms by introducing a 1.001-approximation variant.
- Adaptation of the construction for c-packed curves to analyze realistic input scenarios with bounded curve complexity.
Experimental results
Research questions
- RQ1Is there a strongly subquadratic algorithm for computing the Fréchet distance between two polygonal curves under SETH?
- RQ2Can a 1.001-approximation for the Fréchet distance be computed in strongly subquadratic time?
- RQ3What is the conditional lower bound for the Fréchet distance when the number of vertices in the two curves is highly unbalanced?
- RQ4Is there a (1+ε)-approximation for c-packed curves that runs in Õ(cn) time?
- RQ5Can the lower bound be extended to higher-dimensional curves or other variants of the Fréchet distance?
Key findings
- The Fréchet distance cannot be computed in O(n²⁻δ) time for any δ > 0 unless the Strong Exponential Time Hypothesis (SETH) fails.
- A conditional lower bound of Ω(n²) holds for both the continuous and discrete Fréchet distance under SETH.
- No strongly subquadratic 1.001-approximation algorithm exists for the Fréchet distance unless SETH fails.
- For curves with imbalanced vertex counts, the lower bound depends on the smaller curve size, and no algorithm faster than O(n²⁻δ) exists under SETH.
- For c-packed curves, the lower bound implies that even (1+ε)-approximations with runtime Õ(cn) are unlikely unless SETH fails.
- The results are tight in the sense that they match the best-known algorithms up to polylogarithmic factors, suggesting that current algorithms are optimal under SETH.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.