English

Computing the Fr\'echet Distance When Just One Curve is $c$-Packed: A Simple Almost-Tight Algorithm

Computational Geometry 2025-12-23 v2

Abstract

We study approximating the continuous Fr\'echet distance of two curves with complexity nn and mm, under the assumption that only one of the two curves is cc-packed. Driemel, Har{-}Peled and Wenk DCG'12 studied Fr\'echet distance approximations under the assumption that both curves are cc-packed. In Rd\mathbb{R}^d, they prove a (1+ε)(1+\varepsilon)-approximation in O~(dcn+mε)\tilde{O}(d \, c\,\frac{n+m}{\varepsilon}) time. Bringmann and K\"unnemann IJCGA'17 improved this to O~(cn+mε)\tilde{O}(c\,\frac{n + m }{\sqrt{\varepsilon}}) time, which they showed is near-tight under SETH. Recently, Gudmundsson, Mai, and Wong ISAAC'24 studied our setting where only one of the curves is cc-packed. They provide an involved O~(d(c+ε1)(cnε2+c2mε7+ε2d1))\tilde{O}( d \cdot (c+\varepsilon^{-1})(cn\varepsilon^{-2} + c^2m\varepsilon^{-7} + \varepsilon^{-2d-1}))-time algorithm when the cc-packed curve has nn vertices and the arbitrary curve has mm, where dd is the dimension in Euclidean space. In this paper, we show a simple technique to compute a (1+ε)(1+\varepsilon)-approximation in Rd\mathbb{R}^d in time O(dcn+mεlogn+mε)O(d \cdot c\,\frac{n+m}{\varepsilon}\log\frac{n+m}{\varepsilon}) when one of the curves is cc-packed. Our approach is not only simpler than previous work, but also significantly improves the dependencies on cc, ε\varepsilon, and dd. Moreover, it almost matches the asymptotically tight bound for when both curves are cc-packed. Our algorithm is robust in the sense that it does not require knowledge of cc, nor information about which of the two input curves is cc-packed.

Keywords

Cite

@article{arxiv.2508.10537,
  title  = {Computing the Fr\'echet Distance When Just One Curve is $c$-Packed: A Simple Almost-Tight Algorithm},
  author = {Jacobus Conradi and Ivor van der Hoog and Thijs van der Horst and Tim Ophelders},
  journal= {arXiv preprint arXiv:2508.10537},
  year   = {2025}
}
R2 v1 2026-07-01T04:49:41.641Z