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 with aspect ratio admitting a -approximate batch nearest neighbor search algorithm with runtime , (1) There exists an algorithm that, for any , constructs an -distortion spanner with edges and runs in time . (2) Any algorithm that learns at most pairwise distances by querying a distance oracle and a blackbox batch nearest neighbor search oracle necessarily incurs 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 , for all , 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 spaces, for , our results entail the first subquadratic time algorithms for spanner construction (with the stated size-distortion tradeoff) and distance approximation over these metric spaces.

生成讲解博客的中文版本

生成AI智能校验的中文版本