Papers
Topics
Authors
Recent
Search
2000 character limit reached

Almost Optimal Multiple Source Shortest Paths and Reachability

Published 25 Jun 2026 in cs.DS | (2606.26554v1)

Abstract: Given a graph, computing distances and reachabilities from a small set of vertices to the whole graph is an important primitive both in theory and in practice. In undirected unweighted graphs, while computing single-source shortest path (SSSP) requires O(n<sup>2)O(n<sup>2) time in dense graphs, all-pairs shortest paths (APSP) can be computed in O^(n<sup>ω)</sup>=O(n<sup>2.372)\hat{O}(n<sup>ω)</sup> = O(n<sup>{2.372}) time [Seidel '95] providing significant savings over running nn SSSP instances separately. However, if one needs to compute multiple-source shortest paths (MSSP) from a set of n<sup>σn<sup>σ vertices, the previously best known running time was O^(minn<sup>ω,</sup>n<sup>2</sup>+σ)\hat{O}(\min{n<sup>ω,</sup> n<sup>{2</sup> + σ}}): either compute APSP or run SSSP from each source. On the other hand, MSSP is only as hard as computing Boolean matrix product (BMM) between an n<sup>σ×</sup>nn<sup>σ\times</sup> n matrix and n×nn \times n matrix, leaving a significant gap. Our first main result is an almost optimal algorithm for MSSP on undirected unweighted graphs running in O^(n<sup>ω(σ,</sup>1,1))\hat{O}(n<sup>{ω(σ,</sup> 1, 1)}) time, which gives a smooth interpolation between the SSSP and APSP algorithms. The main technical tool behind our result is a novel graph decomposition, which may be of independent interest. Next, we study the multiple-source reachability problem, where we need to determine whether a given set of n<sup>σn<sup>σ vertices can reach each of the vertices in a given directed graph. Multiple-source reachability can also be solved in O^(minn<sup>ω,</sup>n<sup>2</sup>+σ)\hat{O}(\min{n<sup>ω,</sup> n<sup>{2</sup> + σ}}) time, with the same lower bound from rectangular BMM. We give an optimal algorithm that runs in O^(n<sup>ω(σ,</sup>1,1))\hat{O}(n<sup>{ω(σ,</sup> 1, 1)}) time, again matching the running time for BMM. Our algorithm for multiple-source reachability can be generalized to MSSP on DAGs. As an application, we provide an O(n<sup>2.084)O(n<sup>{2.084}) time algorithm for computing an O~(n)\widetilde{O}(n)-size shortcut set that reduces diameter to O(n<sup>1/3)O(n<sup>{1/3}).

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.