TY - GEN
T1 - An optimal algorithm for average distance in typical regular graphs
AU - Eskenazis, Alexandros
AU - Mendel, Manor
AU - Naor, Assaf
N1 - Publisher Copyright:
Copyright © 2026 by SIAM.
PY - 2026
Y1 - 2026
N2 - We design a deterministic algorithm that, given n points in a typical constant degree regular graph, queries O(n) distances to output a constant factor approximation to the average distance among those points, thus answering a question posed in [Mendel and Naor 2015]. Our algorithm uses the method of [Mendel and Naor 2015] 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 k ∈ N, the approximation factor of any algorithm for average distance that works for all constant degree graphs and queries o(n1+1/k) distances must necessarily be at least 2(k + 1). This matches the upper bound attained by the algorithm that was designed for general finite metric spaces in [Barhum et. al. 2007]. Thus, any algorithm for average distance in constant degree graphs whose approximation guarantee is less than 4 must query Ω(n2) distances, any such algorithm whose approximation guarantee is less than 6 must query Ω(n3/2) distances, any such algorithm whose approximation guarantee less than 8 must query Ω(n4/3) distances, and so forth, and furthermore there exist algorithms achieving those parameters.
AB - We design a deterministic algorithm that, given n points in a typical constant degree regular graph, queries O(n) distances to output a constant factor approximation to the average distance among those points, thus answering a question posed in [Mendel and Naor 2015]. Our algorithm uses the method of [Mendel and Naor 2015] 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 k ∈ N, the approximation factor of any algorithm for average distance that works for all constant degree graphs and queries o(n1+1/k) distances must necessarily be at least 2(k + 1). This matches the upper bound attained by the algorithm that was designed for general finite metric spaces in [Barhum et. al. 2007]. Thus, any algorithm for average distance in constant degree graphs whose approximation guarantee is less than 4 must query Ω(n2) distances, any such algorithm whose approximation guarantee is less than 6 must query Ω(n3/2) distances, any such algorithm whose approximation guarantee less than 8 must query Ω(n4/3) distances, and so forth, and furthermore there exist algorithms achieving those parameters.
UR - https://www.scopus.com/pages/publications/105033620403
UR - https://www.scopus.com/pages/publications/105033620403#tab=citedBy
U2 - 10.1137/1.9781611978971.29
DO - 10.1137/1.9781611978971.29
M3 - Conference contribution
AN - SCOPUS:105033620403
T3 - Proceedings of the Annual ACM-SIAM Symposium on Discrete Algorithms
SP - 742
EP - 757
BT - Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026
A2 - Larsen, Kasper Green
A2 - Saha, Barna
PB - Association for Computing Machinery
T2 - 37th Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026
Y2 - 11 January 2026 through 14 January 2026
ER -