arXiv:2610.29296cs.DSOct 2026

Manuscript Offprint

arXiv:2610.29296

How to Walk a Dog in Parallel: On Parallel Computation of the Discrete Frechet Distance

Leonid Barenboim, Arnold Filtser, Omrit Filtser, Orr Fischer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

How to Walk a Dog in Parallel: On Parallel Computation of the Discrete Fréchet Distance

Leonid Barenboim* Arnold Filtser† Omrit Filtser‡ Orr Fischer§

Abstract

The Fréchet distance (also known as the dog-leash distance) is a well-studied and prevalent distance measure for polygonal curves. In this paper we present parallel algorithms for computing the discrete Fréchet distance between two curves, in both the PRAM and MPC models.

For two polygonal curves of length nn, we show that the distance between them can be computed in the PRAM model in O(log⁡n/σ)O(\log n/\sigma) rounds and O~(n2+σ)\tilde{O}(n^{2+\sigma}) total work for any 0<σ<10 < \sigma < 1. In the sublinear MPC model with nρn^\rho space per machine, it can be computed in O(log⁡n/ρ2)O(\log n/\rho^2) rounds and O~(n2+ρ)\tilde{O}(n^{2+\rho}) total space. For cc-packed curves, we match our bounds to the sequential algorithms, showing that a (1+ε)(1+\varepsilon)-approximation of the distance can be computed in the PRAM model in O(log⁡n+1/σ3)O(\log n + 1/\sigma^3) rounds and O~(n1+σ)\tilde{O}(n^{1+\sigma}) total work, and in the sublinear MPC model in O(1/ρ3)O(1/\rho^3) rounds and O~(n1+ρ)\tilde{O}(n^{1+\rho}) total space, for any constant ε>0\varepsilon > 0. As part of our algorithms for cc-packed curves, we also present parallel algorithms for computing curve simplifications, which may be of independent interest.