Table of Contents
Fetching ...

A Simple Parallel Algorithm with Near-Linear Work for Negative-Weight Single-Source Shortest Paths

Nick Fischer, Bernhard Haeupler, Rustam Latypov, Antti Roeyskoe, Aurelio L. Sulser

TL;DR

This paper presents a randomized parallel algorithm for SSSP in general graphs with near-linear work $\tilde O(m)$ and state-of-the-art span $n^{1/2 + o(1)}$.

Abstract

We give the first parallel algorithm with optimal $\tilde{O}(m)$ work for the classical problem of computing Single-Source Shortest Paths in general graphs with negative-weight edges. In graphs without negative edges, Dijkstra's algorithm solves the Single-Source Shortest Paths (SSSP) problem with optimal $\tilde O(m)$ work, but is inherently sequential. A recent breakthrough by Bernstein, Nanongkai, Wulff-Nilsen; FOCS '22 achieves the same for general graphs. Parallel shortest path algorithms are more difficult and have been intensely studied for decades. Only very recently, multiple lines of research culminated in parallel algorithms with optimal work $\tilde O(m)$ for various restricted settings, such as approximate or exact algorithms for directed or undirected graphs without negative edges. For general graphs, the best known algorithm by [shvinkumar, Bernstein, Cao, Grunau, Haeupler, Jiang, Nanongkai, Su; ESA '24 still requires $m^{1+o(1)}$ work. This paper presents a randomized parallel algorithm for SSSP in general graphs with near-linear work $\tilde O(m)$ and state-of-the-art span $n^{1/2 + o(1)}$. We follow a novel bottom-up approach leading to a particularly clean and simple algorithm. Our algorithm can be seen as a \emph{near-optimal parallel black-box reduction} from SSSP in general graphs to graphs without negative edges. In contrast to prior works, the reduction in this paper is both parallel and essentially without overhead, only affecting work and span by polylogarithmic factors.

A Simple Parallel Algorithm with Near-Linear Work for Negative-Weight Single-Source Shortest Paths

TL;DR

This paper presents a randomized parallel algorithm for SSSP in general graphs with near-linear work and state-of-the-art span .

Abstract

We give the first parallel algorithm with optimal work for the classical problem of computing Single-Source Shortest Paths in general graphs with negative-weight edges. In graphs without negative edges, Dijkstra's algorithm solves the Single-Source Shortest Paths (SSSP) problem with optimal work, but is inherently sequential. A recent breakthrough by Bernstein, Nanongkai, Wulff-Nilsen; FOCS '22 achieves the same for general graphs. Parallel shortest path algorithms are more difficult and have been intensely studied for decades. Only very recently, multiple lines of research culminated in parallel algorithms with optimal work for various restricted settings, such as approximate or exact algorithms for directed or undirected graphs without negative edges. For general graphs, the best known algorithm by [shvinkumar, Bernstein, Cao, Grunau, Haeupler, Jiang, Nanongkai, Su; ESA '24 still requires work. This paper presents a randomized parallel algorithm for SSSP in general graphs with near-linear work and state-of-the-art span . We follow a novel bottom-up approach leading to a particularly clean and simple algorithm. Our algorithm can be seen as a \emph{near-optimal parallel black-box reduction} from SSSP in general graphs to graphs without negative edges. In contrast to prior works, the reduction in this paper is both parallel and essentially without overhead, only affecting work and span by polylogarithmic factors.

Paper Structure

This paper contains 11 sections, 11 theorems, 5 equations, 1 algorithm.

Key Result

Theorem 1.1

There is a randomized parallel algorithm for Negative-Weight Single-Source Shortest Paths with work $\tilde{O}(m)$ and span $n^{1/2+o(1)}$.Here and throughout we assume that all weights are polynomially bounded (i.e., that there is some constant $c$ such that all weights are in $\{-n^c, \dots, n^c\}

Theorems & Definitions (21)

  • Theorem 1.1: Parallel Negative-Weight Single-Source Shortest Paths
  • Theorem 1.2: Black-Box Reduction
  • Definition 2.1: SSSP
  • Theorem 2.2: Directed LDD AshvinkumarBCGHJNS24
  • Lemma 2.3: Topologically Sorted LDD
  • Definition 2.4: Potential-Adjusted Weights
  • Lemma 2.6: SSSP with Few Negative Edges
  • proof
  • Definition 2.7
  • Definition 2.8: Restricted SSSP
  • ...and 11 more