Skip to content

Fast Geometric Spanners via Approximate Nearest Neighbor Search

Alexandr Andoni, Manuel Paez, Krish Singal, Tian Zhang

cs.DS

Abstract

We study the problem of constructing metric spanners in general metric spaces in subquadratic time when given blackbox access to a fast algorithm for batch approximate nearest neighbor search. In particular, we show the following results for any metric space M=([n],d)\mathsf{M} = ([n], \mathsf{d}) with aspect ratio ΔΔ admitting a cc-approximate batch nearest neighbor search algorithm with runtime τM(n)τ_{\mathsf{M}}(n), (1) There exists an algorithm that, for any k∈Nk \in \mathbb{N}, constructs an O(ck)O(c k)-distortion spanner with O~(kn1+1/2klog⁡Δ)\tilde{O}(kn^{1+1/2k} \log Δ) edges and runs in time O~(τM⋅kn1/klog⁡Δ)\tilde{O}(τ_{\mathsf{M}} \cdot k n^{1/k} \log Δ). (2) Any algorithm that learns at most o(n1+1/k/k)o(n^{1+1/k}/k) pairwise distances by querying a distance oracle and a blackbox batch nearest neighbor search oracle necessarily incurs Ω(ck)Ω(c k) distortion. Our results entail that (truly) sub-quadratic time algorithms for spanner construction is equivalent to subquadratic time BANN (up to constant-factor losses). As a further application, we use our fast spanner constructions to obtain a fast algorithm for approximating the Wasserstein distance Wq\mathsf{W}_q, for all q>1q > 1, over any metric space admitting an efficient batch approximate nearest neighbor search algorithm. Together with recent new efficient algorithms for approximate nearest neighbor search in ℓp\ell_p spaces, for p>2p > 2, our results entail the first subquadratic time algorithms for spanner construction (with the stated size-distortion tradeoff) and Wq\mathsf{W}_q distance approximation over these metric spaces.

Create a lesson

Metadata

Categories
cs.DS, cs.CG