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

Abstract

The Fréchet distance is a well-studied distance measure for paths in a metric space. It is mostly studied for paths in d-dimensional Euclidean space. Here, computing the Fréchet 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 3 in strongly-subquadratic time. Recently, it was shown that for any >0, there exists a randomized algorithm that can compute a (7+)-approximation in strongly-subquadratic expected time [Cheng, Huang, and Zhang; STOC'25]. For polylines with n and m vertices in a Euclidean space of constant dimension, where n ≥ m, their algorithm takes O(nm0.99 (n/)) 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+)-approximation in O(nm2/3 n · (1 n)) time. Our algorithm nearly matches the conditional lower bound on the approximation factor implied by SETH. For polylines in R, we present a 3-approximation algorithm that runs in O(nm2/3 5/3 n) time, and exactly matches the conditional lower bound. For our results, we introduce a general strongly-subquadratic time 3-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+)-approximation algorithm in general metric spaces. These assumptions hold automatically for polylines in any metric space (Rd, Lp) with p ≥ 1.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…