Table of Contents
Fetching ...

A Bottom-Up Algorithm for Negative-Weight SSSP with Integrated Negative Cycle Finding

Jason Li, Connor Mowry

TL;DR

This work addresses Negative-Weight SSSP with possible negative cycles by introducing a bottom-up, diameter-based decomposition (Scale) that integrates negative-cycle finding into a Bellman-Ford/Dijkstra hybrid. The method scales by first forming a scaled graph $G'$ with $w_{G'}(e)=w_G(e)+\frac{W}{2}$, recursively decomposing via a diameter parameter, and then computing distances iteratively while adjusting a potential $\phi$ to ensure non-negative edges, terminating early if a negative cycle is detected. The main contribution is a simpler, robust algorithm that achieves $O\left( (m + \log\log n) \log^2 n \right)$ expected time (high probability) and yields a certificate $G_\phi$ or a negative cycle, improving accessibility and implementation practicality while preserving correctness guarantees. The approach emphasizes robust parameterization and design simplicity, offering a practical alternative for solving Negative-Weight SSSP in graphs with potential negative cycles.

Abstract

We present a simplified algorithm for solving the Negative-Weight Single-Source Shortest Paths (SSSP) problem, focusing on enhancing clarity and practicality over prior methods. Our algorithm uses graph diameter as a recursive parameter, offering greater robustness to the properties of the decomposed graph compared to earlier approaches. Additionally, we fully integrate negative-weight cycle finding into the algorithm by augmenting the Bellman-Ford/Dijkstra hybrid, eliminating the need for a separate cycle-finding procedure found in prior methods. Although the algorithm achieves no theoretical efficiency gains, it simplifies negative cycle finding and emphasizes design simplicity, making it more accessible for implementation and analysis. This work highlights the importance of robust parameterization and algorithmic simplicity in addressing the challenges of Negative-Weight SSSP.

A Bottom-Up Algorithm for Negative-Weight SSSP with Integrated Negative Cycle Finding

TL;DR

This work addresses Negative-Weight SSSP with possible negative cycles by introducing a bottom-up, diameter-based decomposition (Scale) that integrates negative-cycle finding into a Bellman-Ford/Dijkstra hybrid. The method scales by first forming a scaled graph with , recursively decomposing via a diameter parameter, and then computing distances iteratively while adjusting a potential to ensure non-negative edges, terminating early if a negative cycle is detected. The main contribution is a simpler, robust algorithm that achieves expected time (high probability) and yields a certificate or a negative cycle, improving accessibility and implementation practicality while preserving correctness guarantees. The approach emphasizes robust parameterization and design simplicity, offering a practical alternative for solving Negative-Weight SSSP in graphs with potential negative cycles.

Abstract

We present a simplified algorithm for solving the Negative-Weight Single-Source Shortest Paths (SSSP) problem, focusing on enhancing clarity and practicality over prior methods. Our algorithm uses graph diameter as a recursive parameter, offering greater robustness to the properties of the decomposed graph compared to earlier approaches. Additionally, we fully integrate negative-weight cycle finding into the algorithm by augmenting the Bellman-Ford/Dijkstra hybrid, eliminating the need for a separate cycle-finding procedure found in prior methods. Although the algorithm achieves no theoretical efficiency gains, it simplifies negative cycle finding and emphasizes design simplicity, making it more accessible for implementation and analysis. This work highlights the importance of robust parameterization and algorithmic simplicity in addressing the challenges of Negative-Weight SSSP.

Paper Structure

This paper contains 8 sections, 8 theorems, 3 algorithms.

Key Result

Theorem 1

Consider a graph with integral edge weights that are at least $-W$. There is a Las Vegas algorithm that solves Negative-Weight SSSP in $O((m+n\log\log n)\log^2n\log(nW))$ time with high probability.

Theorems & Definitions (21)

  • Theorem 1
  • Lemma 2: Lemma 8 of bringmann2023negativeweightsinglesourceshortestpaths
  • Lemma 3: Lemmas 25 and 62 of bringmann2023negativeweightsinglesourceshortestpaths
  • Lemma 4: Lemma 3.2 of bernstein2023negativeweightsinglesourceshortestpaths
  • Theorem 4
  • Claim 5
  • proof
  • Claim 6
  • proof
  • Claim 7
  • ...and 11 more