English

Fr\'echet Distance in Subquadratic Time

Computational Geometry 2024-10-21 v2 Data Structures and Algorithms

Abstract

Let mm and nn be the numbers of vertices of two polygonal curves in Rd\mathbb{R}^d for any fixed dd such that mnm \leq n. Since it was known in 1995 how to compute the Fr\'{e}chet distance of these two curves in O(mnlog(mn))O(mn\log (mn)) time, it has been an open problem whether the running time can be reduced to o(n2)o(n^2) when m=Ω(n)m = \Omega(n). In the mean time, several well-known quadratic time barriers in computational geometry have been overcome: 3SUM, some 3SUM-hard problems, and the computation of some distances between two polygonal curves, including the discrete Fr\'{e}chet distance, the dynamic time warping distance, and the geometric edit distance. It is curious that the quadratic time barrier for Fr\'{e}chet distance still stands. We present an algorithm to compute the Fr\'echet distance in O(mn(loglogn)2+μlogn/log1+μm)O(mn(\log\log n)^{2+\mu}\log n/\log^{1+\mu} m) expected time for some constant μ(0,1)\mu \in (0,1). It is the first algorithm that returns the Fr\'{e}chet distance in o(mn)o(mn) time when m=Ω(nε)m = \Omega(n^{\varepsilon}) for any fixed ε(0,1]\varepsilon \in (0,1].

Keywords

Cite

@article{arxiv.2407.05231,
  title  = {Fr\'echet Distance in Subquadratic Time},
  author = {Siu-Wing Cheng and Haoqiang Huang},
  journal= {arXiv preprint arXiv:2407.05231},
  year   = {2024}
}

Comments

To appear at SODA25

R2 v1 2026-06-28T17:31:38.775Z