Almost Optimal Multiple Source Shortest Paths and Reachability
摘要
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 time in dense graphs, all-pairs shortest paths (APSP) can be computed in time [Seidel '95] providing significant savings over running SSSP instances separately. However, if one needs to compute multiple-source shortest paths (MSSP) from a set of vertices, the previously best known running time was : 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 matrix and matrix, leaving a significant gap. Our first main result is an almost optimal algorithm for MSSP on undirected unweighted graphs running in 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 vertices can reach each of the vertices in a given directed graph. Multiple-source reachability can also be solved in time, with the same lower bound from rectangular BMM. We give an optimal algorithm that runs in 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 time algorithm for computing an -size shortcut set that reduces diameter to .
引用
@article{arxiv.2606.26554,
title = {Almost Optimal Multiple Source Shortest Paths and Reachability},
author = {Barna Saha and Yinzhan Xu and Christopher Ye},
journal= {arXiv preprint arXiv:2606.26554},
year = {2026}
}
备注
41 pages, 4 figures. Abstract shortened to meet arXiv requirements