An optimal algorithm for average distance in typical regular graphs
Abstract
We design a deterministic algorithm that, given points in a \emph{typical} constant degree regular~graph, queries distances to output a constant factor approximation to the average distance among those points, thus answering a question posed in~\cite{MN14}. Our algorithm uses the method of~\cite{MN14} to construct a sequence of constant degree graphs that are expanders with respect to certain nonpositively curved metric spaces, together with a new rigidity theorem for metric transforms of nonpositively curved metric spaces. The fact that our algorithm works for typical (uniformly random) constant degree regular graphs rather than for all constant degree graphs is unavoidable, thanks to the following impossibility result that we obtain: For every fixed , the approximation factor of any algorithm for average distance that works for all constant degree graphs and queries distances must necessarily be at least . This matches the upper bound attained by the algorithm that was designed for general finite metric spaces in~\cite{BGS}. Thus, any algorithm for average distance in constant degree graphs whose approximation guarantee is less than must query distances, any such algorithm whose approximation guarantee is less than must query distances, any such algorithm whose approximation guarantee less than must query distances, and so forth, and furthermore there exist algorithms achieving those parameters.
Cite
@article{arxiv.2510.18722,
title = {An optimal algorithm for average distance in typical regular graphs},
author = {Alexandros Eskenazis and Manor Mendel and Assaf Naor},
journal= {arXiv preprint arXiv:2510.18722},
year = {2025}
}
Comments
To appear in the proceedings of the 37th ACM-SIAM Symposium on Discrete Algorithms. The appendix contains the full version as it was submitted to SODA because it contains complete proofs of all the new statements that are covered herein. In a later posting we will remove that appendix and post it as a standalone paper which includes further results and applications to pure mathematics