arXiv:2611.00240cs.CGOct 2026

Manuscript Offprint

arXiv:2611.00240

Constant Approximation of Fréchet Distance in Near-Linear Time

Haoqiang Huang, Zihe Wang, Shuo Zhang

Abstract

We present a deterministic algorithm that approximates the Fréchet distance between two polygonal curves in Rd\mathbb{R}^d with nn and mm vertices within a constant factor in O((m+n)1+ε)O((m+n)^{1+\varepsilon}) time, for any fixed ε>0\varepsilon > 0 and any fixed dimension dd. The approximation factor depends only on ε\varepsilon and dd, no assumption on the input curves is needed, and the algorithm also reports a matching that attains the returned value. The same result holds for the discrete Fréchet distance. Our result extends the line of work initiated in [CHZ25], which gave the first constant-factor approximation in strongly subquadratic time, to near-linear time. For two nn-vertex curves, the best previous running time for a constant-factor approximation was O~(n5/3)\tilde{O}(n^{5/3}) [vdHO26].

Our algorithm bootstraps between two primitives: a data structure that preprocesses a single curve for comparing any two of its subcurves, that is, contiguous portions of the curve, and a query procedure that compares subcurves of two different curves. Given the data structure for one curve, we compare it with another curve by replacing the latter with a surrogate assembled from a few subcurves of the former, chosen so that one surrogate serves 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+ε)O((m+n)^{1+\varepsilon}). To make the output of each round reusable by the next, we compactly summarize how matchings can enter and leave a pair of subcurves. The summary can be reused for different starting points and retains the information needed to report the matchings.

*Email: huanghaoqiang@huawei.com. †Renmin University of China, Beijing, China. Email: wang.zihe@ruc.edu.cn. ‡Renmin University of China, Beijing, China. Email: zhangshuo1422@ruc.edu.cn.

Contents

1 Introduction 1
1.1 Our results 2
1.2 Organization 3
2 Preliminaries 3
3 Technical overview 6
3.1 Where the speedup comes from 7
3.2 Shared surrogates and faster queries 8
3.3 Building the next index 10
3.4 Boundary summaries and continuous profiles 11
4 The algorithm 13
4.1 Boundary maps and indexes 13
4.2 The inner recursion 14
4.3 The outer recursion 15
4.4 The schedule and the overall procedure 15
4.5 Deciding and approximating the distance 16
5 Boundary maps 17
5.1 Finite summaries 18
5.2 From ports to continuous boundaries 20
5.3 Applying a boundary map to label profiles 21
5.4 Networks of rectangles 23
5.5 The exact base 24
6 The inner recursion: proof of Theorem 4.4 24
6.1 The cursor search 25
6.2 The surrogate and the transfer of right outputs 27
6.3 Proof of Theorem 4.4 28
7 The outer recursion: constructing indexes 29
7.1 Compiling a routine 30
7.2 The base index 30
7.3 The index upgrade 31
8 The parameters and the proof of the main theorem 33
8.1 Choosing the parameters 33
8.2 Proof of Theorem 1.1 34
9 Conclusion 35
AI methodology 35
A From decision to approximation 35
B The discrete Fréchet distance 37
C Further related work 38
References 40

ii

References (28)