Semi-dynamic shortest-path tree algorithms for directed graphs with arbitrary weights

03/05/2019
by   Sanjiang Li, et al.
0

Given a directed graph G with arbitrary real-valued weights, the single source shortest-path problem (SSSP) asks for, given a source s in G, finding a shortest path from s to each vertex v in G. A classical SSSP algorithm detects a negative cycle of G or constructs a shortest-path tree (SPT) rooted at s in O(mn) time, where m,n are the numbers of edges and vertices in G respectively. In many practical applications, new constraints come from time to time and we need to update the SPT frequently. Given an SPT T of G, suppose the weight on a certain edge is modified. We show by rigorous proof that the well-known Ball-String algorithm for positively weighted graphs can be adapted to solve the dynamic SPT problem for directed graphs with arbitrary weights. Let n_0 be the number of vertices that are affected (i.e., vertices that have different distances from s or different parents in the input and output SPTs) and m_0 the number of edges incident to an affected vertex. The adapted algorithms terminate in O(m_0+n_0 n_0) time, either detecting a negative cycle (only in the decremental case) or constructing a new SPT T' for the updated graph. We show by an example that the output SPT T' may have more than necessary edge changes to T. To remedy this, we give a general method for transforming T' into an SPT with minimal edge changes in time O(n_0) provided that G has no cycles with zero length.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/07/2021

An output-sensitive algorithm for all-pairs shortest paths in directed acyclic graphs

A straightforward dynamic programming method for the single-source short...
research
11/03/2013

An Adaptive Amoeba Algorithm for Shortest Path Tree Computation in Dynamic Graphs

This paper presents an adaptive amoeba algorithm to address the shortest...
research
11/15/2019

Delta-stepping SSSP: from Vertices and Edges to GraphBLAS Implementations

GraphBLAS is an interface for implementing graph algorithms. Algorithms ...
research
12/08/2021

Shortest Paths in Graphs with Matrix-Valued Edges: Concepts, Algorithm and Application to 3D Multi-Shape Analysis

Finding shortest paths in a graph is relevant for numerous problems in c...
research
01/02/2023

Parameterized Lower Bounds for Problems in P via Fine-Grained Cross-Compositions

We provide a general framework to exclude parameterized running times of...
research
12/13/2021

Factorization and pseudofactorization of weighted graphs

For unweighted graphs, finding isometric embeddings is closely related t...
research
07/16/2022

A Parallel Privacy-Preserving Shortest Path Protocol from a Path Algebra Problem

In this paper, we present a secure multiparty computation (SMC) protocol...

Please sign up or login with your details

Forgot password? Click here to reset