English

A Strongly-Subquadratic $(3+\varepsilon)$-Approximation for the Fréchet Distance for Paths in Metric Spaces

Computational Geometry 2026-07-09 v1

Abstract

The Fr\'echet distance is a well-studied distance measure for paths in a metric space. It is mostly studied for paths in dd-dimensional Euclidean space. Here, computing the Fr\'echet distance between two polylines takes time roughly quadratic in the number of vertices. Assuming the strong exponential time hypothesis (SETH), it cannot be approximated to within a factor less than 33 in strongly-subquadratic time. Recently, it was shown that for any ε>0\varepsilon>0, there exists a randomized algorithm that can compute a (7+ε)(7+\varepsilon)-approximation in strongly-subquadratic expected time [Cheng, Huang, and Zhang; STOC'25]. For polylines with nn and mm vertices in a Euclidean space of constant dimension, where nmn \geq m, their algorithm takes O(nm0.99log(n/ε))O(nm^{0.99} \log(n/\varepsilon)) time in expectation. We present a deterministic approximation algorithm that significantly improves upon the approximation factor and running time. Specifically, our algorithm computes a (3+ε)(3+\varepsilon)-approximation in O(nm2/3lognlog(1εlogn))O(nm^{2/3} \log n \cdot \log (\frac{1}{\varepsilon} \log n)) time. Our algorithm nearly matches the conditional lower bound on the approximation factor implied by SETH. For polylines in R\mathbb{R}, we present a 33-approximation algorithm that runs in O(nm2/3log5/3n)O(nm^{2/3} \log^{5/3} n) time, and exactly matches the conditional lower bound. For our results, we introduce a general strongly-subquadratic time 33-approximate decision algorithm. This algorithm makes no assumptions on the ambient metric space, and relies only on standard assumptions on the so-called free space of the input paths. Under some mild assumptions, our decision algorithm leads to a (3+ε)(3+\varepsilon)-approximation algorithm in general metric spaces. These assumptions hold automatically for polylines in any metric space (Rd,Lp)(\mathbb{R}^d, L_p) with p1p \geq 1.

Keywords

Cite

@article{arxiv.2607.08893,
  title  = {A Strongly-Subquadratic $(3+\varepsilon)$-Approximation for the Fréchet Distance for Paths in Metric Spaces},
  author = {Thijs van der Horst and Tim Ophelders},
  journal= {arXiv preprint arXiv:2607.08893},
  year   = {2026}
}

Comments

To be published in proceedings of ESA 2026