Almost Optimal Multiple Source Shortest Paths and Reachability

Barna Saha, Yinzhan Xu, Christopher YearXiv 2026

This paper presents a significant theoretical breakthrough in graph algorithms, specifically targeting the "Multiple Source Shortest Paths" (MSSP) and reachability problems. By bridging a long-standing complexity gap, the authors provide algorithms that are "almost optimal," matching the theoretical lower bounds tied to fast matrix multiplication.

TL;DR

The authors introduce the first algorithms for Multiple Source Shortest Paths (MSSP) and reachability that match the theoretical lower bound of rectangular Boolean matrix multiplication. Their approach uses a novel graph decomposition technique to smoothly interpolate the running time between single-source and all-pairs shortest path problems, significantly improving state-of-the-art results for applications like shortcut sets and distance emulators.

What Problem Does This Paper Address?

In graph theory, we often need to know the distance between vertices. We have efficient algorithms for two extremes:

  1. Single-Source Shortest Path (SSSP): Finding distances from one vertex to all others.
  2. All-Pairs Shortest Paths (APSP): Finding distances between every pair of vertices.

However, many real-world applications fall in the middle: Multiple-Source Shortest Paths (MSSP). Imagine a city map where you only care about distances from a few "hot spots" (like grocery stores or parks) to every residential building. If you have $n^\sigma$ sources in a graph of $n$ vertices, the "naive" way is to either run SSSP $n^\sigma$ times or just run a full APSP.

For dense, undirected, unweighted graphs, this left a frustrating gap. A standard reduction shows that MSSP is at least as hard as rectangular Boolean Matrix Multiplication (BMM). Yet, the best known algorithms were significantly slower than what BMM suggested was possible. This paper finally closes that gap.

Methods

The paper’s primary innovation is a new structural tool called a Low Diameter Small Neighborhood Decomposition (LDSND).

Standard graph decompositions usually try to partition a graph so that there are very few edges between clusters. In contrast, the authors' LDSND requires two different properties:

  1. Low Diameter: Each cluster in the partition must have a small diameter (roughly $n^{o(1)}$).
  2. Small Neighborhoods: The sum of the sizes of the neighborhoods of all clusters must be nearly linear ($n^{1+o(1)}$).

This decomposition allows the authors to "batch" the computation of Breadth-First Search (BFS) trees. Instead of growing each source's BFS tree independently, the algorithm identifies "ready" clusters—those relevant to many sources—and processes them simultaneously using fast rectangular matrix multiplication.

For directed graphs (reachability and DAGs), they employ a recursive divide-and-conquer scheme that reduces the problem to BMM at each level of the recursion.

Datasets

As a theoretical computer science paper focused on algorithmic complexity and formal proofs, no empirical datasets were used. The results are validated through mathematical proofs of asymptotic running times.

Key Insights and Ideas

  • The BMM Connection: The authors prove that MSSP is essentially equivalent to rectangular matrix multiplication. This means any further improvement in MSSP would likely require a breakthrough in how we multiply matrices.
  • Neighborhood vs. Edge Cut: The shift from minimizing "edges between clusters" to minimizing the "total size of cluster neighborhoods" is the key technical "aha moment." It prevents BFS layers from expanding too rapidly and hitting too many distinct vertices, which is what makes the matrix multiplication batching efficient.
  • Smooth Interpolation: The resulting algorithm provides a continuous transition in complexity. As the number of sources increases from 1 to $n$, the runtime moves gracefully from the SSSP bound to the APSP bound.

Key Results

  • Undirected MSSP: The authors achieve a running time of $\hat{O}(n^{\omega(\sigma, 1, 1)})$, matching the Bounded Matrix Multiplication lower bound. This holds for unweighted graphs and extends to graphs with small integer weights.
  • Directed Reachability: They provide a deterministic algorithm that also matches the BMM lower bound, significantly improving upon recent results by Elkin and Trehan.
Figure 1: Comparison of running times of algorithms for Multiple-Source Reachability on dense graphs when |Sin| = nσ. The baseline algorithm (yellow line) runs in time bO(min(n2+σ, nω)). The algorithm of Elkin and Trehan (blue line) runs in time bO(n1+2ω(σ,1,1)/3). Note that the figure also illustrates our improvement over the baseline algorithm for undirected MSSP, since the baseline algorithms are identical for undirected MSSP and Multiple-Source Reachability.
  • Shortcut Sets: They improve the time to compute $n^{1/3}$-diameter shortcut sets from $\tilde{O}(n^{7/3})$ to $O(n^{2.084})$.
Figure 2: Comparison of algorithms for computing Shortcut Sets. The red line shows the improved runtime of this work across various diameter exponents.

Limitations and Future Work

  • Randomization: The current algorithm for computing the LDSND is randomized. The authors list the derandomization of this decomposition as an open question.
  • Graph Density: The algorithms are optimized for dense graphs ($m = \Theta(n^2)$). Their efficiency on sparse graphs is currently sub-optimal, and finding a version that runs in $m^{1+o(1)}$ time is a suggested future direction.
  • Directed Shortest Paths: While reachability and DAG shortest paths are solved, the equivalence for MSSP on general directed graphs remains an open problem.

Summary updated

BibTeX
@misc{saha2026almost,
  author = {Barna Saha and Yinzhan Xu and Christopher Ye},
  title = {{Almost Optimal Multiple Source Shortest Paths and Reachability}},
  year = {2026},
  eprint = {2606.26554},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.26554},
}
Figure