arXivPreprintOpen accesscs.CG

Constant Approximation of Fr\'echet Distance in Near-Linear Time

Haoqiang Huang, Zihe Wang, Shuo Zhang

Key points

From the paper's conclusion
  • We present a deterministic algorithm that approximates the Fr\'echet distance between two polygonal curves in $\mathbb{R}^d$ with $n$ and $m$ vertices within a constant factor in $O((m+n)^{1+\varepsilon})$ time, for every fixed $\varepsilon>0$ and fixed dimension $d$.

Abstract

We present a deterministic algorithm that approximates the Fr\'echet distance between two polygonal curves in $\mathbb{R}^d$ with $n$ and $m$ vertices within a constant factor in $O((m+n)^{1+\varepsilon})$ time, for every fixed $\varepsilon>0$ and fixed dimension $d$. The approximation factor depends only on $\varepsilon$ and $d$. No assumption on the input curves is needed, and the algorithm also reports a matching certifying the approximation. The same result holds for the discrete Fr\'echet distance. Our result extends the line of work initiated by Cheng, Huang, and Zhang (2025), who gave the first constant-factor approximation in strongly subquadratic time, to near-linear time. For two $n$-vertex curves, the best previous running time was $\widetilde{O}(n^{5/3})$, due to van der Horst and Ophelders (2026). Our algorithm bootstraps between two primitives: a data structure that preprocesses a single curve for comparing any two of its subcurves, and a query procedure that compares subcurves of two different curves. Given the data structure for one curve, we compare it with another curve using a surrogate assembled from subcurves of the former. The surrogate is shared by all possible starting points of a matching. Conversely, faster queries make the next data structure cheaper to build. After a number of rounds that depends only on $\varepsilon$, both preprocessing and query time are $O((m+n)^{1+\varepsilon})$. To make each round's output reusable by the next, we compactly summarize how matchings can enter and leave a pair of subcurves. These summaries can be applied to different starting points and retain the information needed to report the matchings.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Constant Approximation of Fr\'echet Distance in Near-Linear Time — Science Skim