Approximating the Directed Hausdorff Distance
Oliver A. Chubet, Parth M. Parikh, Donald R. Sheehy, Siddharth S. Sheth
TL;DR
The paper addresses the problem of computing the directed Hausdorff distance between finite point sets in metric spaces with bounded doubling dimension, where naïve approaches are quadratic. It introduces preprocessing of each input set into greedy trees, enabling a $(1+\varepsilon)$-approximation of $\mathbf{d}_h(A,B)$ in time $\left(2+\frac{1}{\varepsilon}\right)^{O(d)}\,n$ after an $O(n\log Δ)$ preprocessing, with $Δ$ the spread and $d$ the doubling dimension. The framework extends to all $k$-partial directed Hausdorff distances $\mathbf{d}_h^{(k)}(A,B)$ with the same preprocessing and linear postprocessing, and provides a linear-time method to output the entire distance sequence for all $k$. An application to metric multidimensional scaling demonstrates amortizing the preprocessing over many distance computations, yielding practical speedups over traditional nearest-neighbor-based approaches. Overall, the work delivers a principled, preprocessing-based pipeline for fast approximate directed Hausdorff computations in doubling metrics, with concrete time bounds and extensions to outlier-robust variants.
Abstract
The Hausdorff distance is a metric commonly used to compute the set similarity of geometric sets. For sets containing a total of $n$ points, the exact distance can be computed naïvely in $O(n^2)$ time. In this paper, we show how to preprocess point sets individually so that the Hausdorff distance of any pair can then be approximated in linear time. We assume that the metric is doubling. The preprocessing time for each set is $O(n\log Δ)$ where $Δ$ is the ratio of the largest to smallest pairwise distances of the input. In theory, this can be reduced to $O(n\log n)$ time using a much more complicated algorithm. We compute $(1+\varepsilon)$-approximate Hausdorff distance in $(2 + \frac{1}{\varepsilon})^{O(d)}n$ time in a metric space with doubling dimension $d$. The $k$-partial Hausdorff distance ignores $k$ outliers to increase stability. Additionally, we give a linear-time algorithm to compute directed $k$-partial Hausdorff distance for all values of $k$ at once with no change to the preprocessing.
