Why walking the dog takes time: Frechet distance has no strongly subquadratic algorithms unless SETH fails
Not on the map. Why?
Abstract (arXiv)
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).
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 5 Apr 2014.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 1; 2024: 1; 2025: 1.
6 papers.
- 2022On The Computational Complexity of Self-Attentioncited by 137
- 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Modelscited by 31
- 2022Bypass Exponential Time Preprocessing: Fast Neural Network Training via Weight-Data Correlation Preprocessingcited by 29
- 2021Machine learning pipeline for battery state of health estimationcited by 28
- 2025Improved Learning via k-DTW: A Novel Dissimilarity Measure for Curvescited by 2
- 2023On the Fine-Grained Hardness of Inverting Generative Modelscited by 1
- 2025Improved Learning via k-DTW: A Novel Dissimilarity Measure for Curves29 May 2025
- 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Models5 Jun 2024
- 2023On the Fine-Grained Hardness of Inverting Generative Models11 Sep 2023
- 2022Bypass Exponential Time Preprocessing: Fast Neural Network Training via Weight-Data Correlation Preprocessing25 Nov 2022
- 2022On The Computational Complexity of Self-Attention11 Sep 2022
- 2021Machine learning pipeline for battery state of health estimation1 Feb 2021