Skip to main content
QUICK REVIEW

[Paper Review] Distributed Exact Weighted All-Pairs Shortest Paths in $ ilde O(n^{5/4})$ Rounds

Chien‐Chung Huang, Danupon Nanongkai|arXiv (Cornell University)|Aug 13, 2017
Optimization and Packing ProblemsEngineering1 references4 citations
TL;DR

This paper presents a randomized Las Vegas algorithm that computes exact weighted all-pairs shortest paths in $ ilde{O}(n^{5/4})$ rounds in the CONGEST model, marking the first improvement over the naive $O(m)$ bound for dense graphs. The approach leverages a novel application of the scaling technique, combined with short-range extension and reversed $r$-sink shortest paths algorithms, enabling efficient distance computation through weight rounding and hierarchical message aggregation.

ABSTRACT

We study computing {\em all-pairs shortest paths} (APSP) on distributed networks (the CONGEST model). The goal is for every node in the (weighted) network to know the distance from every other node using communication. The problem admits $(1+o(1))$-approximation $ ilde O(n)$-time algorithms ~\cite{LenzenP-podc15,Nanongkai-STOC14}, which are matched with $ ilde Ω(n)$-time lower bounds~\cite{Nanongkai-STOC14,LenzenP_stoc13,FrischknechtHW12}\footnote{$ ilde Θ$, $ ilde O$ and $ ilde Ω$ hide polylogarithmic factors. Note that the lower bounds also hold even in the unweighted case and in the weighted case with polynomial approximation ratios.}. No $ω(n)$ lower bound or $o(m)$ upper bound were known for exact computation. In this paper, we present an $ ilde O(n^{5/4})$-time randomized (Las Vegas) algorithm for exact weighted APSP; this provides the first improvement over the naive $O(m)$-time algorithm when the network is not so sparse. Our result also holds for the case where edge weights are {\em asymmetric} (a.k.a. the directed case where communication is bidirectional). Our techniques also yield an $ ilde O(n^{3/4}k^{1/2}+n)$-time algorithm for the {\em $k$-source shortest paths} problem where we want every node to know distances from $k$ sources; this improves Elkin's recent bound~\cite{Elkin-STOC17} when $k= ilde ω(n^{1/4})$.

Motivation & Objective

  • To close the gap between the $O(m)$ upper bound and $ ilde{ heta}(n)$ lower bound for exact all-pairs shortest paths (APSP) in the CONGEST model.
  • To develop a distributed algorithm that achieves exact APSP computation faster than the naive $O(m)$-round approach, particularly in moderately dense networks.
  • To extend the applicability of the scaling technique to distributed shortest paths, a method previously unexplored in this context.
  • To provide improved bounds for the $k$-source shortest paths problem, especially when $k = ilde{ heta}(n^{1/4 + ho})$ for $ ho > 0$.
  • To introduce new distributed primitives such as short-range extension and reversed $r$-sink shortest paths for use in exact shortest path computation.

Proposed method

  • The algorithm uses a scaling framework that iteratively refines distance estimates by rounding edge weights to multiples of a growing $Δ$, enabling efficient computation in phases.
  • A short-range algorithm computes exact distances within $h$ hops from $q$ sources in $ ilde{O}( ext{polylog}(n) imes ext{min}(n, ext{poly}(h)))$ time, using modified Bellman-Ford and BFS.
  • The short-range extension technique propagates distance knowledge beyond $h$ hops by introducing small additive errors via weight rounding, later corrected using a reverse shortest path computation.
  • The reversed $r$-sink shortest paths algorithm enables $r$ sinks to learn distances from all nodes, using bottleneck node analysis to limit message load and achieve $ ilde{O}(n ext{sqrt}(r))$ time.
  • The $k$-source shortest paths algorithm combines short-range and reversed $r$-sink techniques, achieving $ ilde{O}(n + n^{3/4}k^{1/2})$ time, improving over prior bounds when $k = ilde{ heta}(n^{1/4 + ho})$.
  • The framework uses hierarchical sampling of centers and iterative refinement, with each phase reducing the effective weight range and leveraging message aggregation to maintain efficiency.

Experimental results

Research questions

  • RQ1Can exact weighted all-pairs shortest paths be computed in sub-linear rounds in the CONGEST model, beyond the $O(m)$ naive bound?
  • RQ2Is it possible to apply the classical scaling technique to distributed shortest path computation, and if so, how can it be made efficient?
  • RQ3What is the optimal time complexity for the $k$-source shortest paths problem, and can it be improved when $k$ is super-constant?
  • RQ4Can new distributed primitives—such as reversed $r$-sink and short-range extension—be designed to support exact shortest path computation with sub-linear time?
  • RQ5Does the existence of a $ ilde{O}(n^{5/4})$-time algorithm for APSP imply a path toward near-linear time algorithms for exact graph problems in distributed systems?

Key findings

  • The paper presents the first $ ilde{O}(n^{5/4})$-round algorithm for exact weighted all-pairs shortest paths in the CONGEST model, improving over the naive $O(m)$ bound for dense graphs.
  • The algorithm is randomized Las Vegas and works for both undirected and directed (asymmetric weight) graphs, with correctness guaranteed with high probability.
  • For the $k$-source shortest paths problem, the algorithm achieves $ ilde{O}(n + n^{3/4}k^{1/2})$ time, which improves upon Elkin’s previous bound when $k = ilde{ heta}(n^{1/4 + ho})$ for any $ ho > 0$.
  • The reversed $r$-sink shortest paths algorithm runs in $ ilde{O}(n ext{sqrt}(r))$ time, enabling efficient computation of distances from $r$ sinks to all other nodes.
  • The short-range extension technique allows extending distance knowledge by $h$ hops in $ ilde{O}(n ext{sqrt}(h))$ time using weight rounding and error correction, a key enabler for the scaling framework.
  • The results demonstrate that the scaling technique can be effectively adapted to distributed settings, opening new avenues for exact shortest path computation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.