Semi-dynamic shortest-path tree algorithms for directed graphs with arbitrary weights
Abstract
Given a directed graph with arbitrary real-valued weights, the single source shortest-path problem (SSSP) asks for, given a source in , finding a shortest path from to each vertex in . A classical SSSP algorithm detects a negative cycle of or constructs a shortest-path tree (SPT) rooted at in time, where are the numbers of edges and vertices in respectively. In many practical applications, new constraints come from time to time and we need to update the SPT frequently. Given an SPT of , suppose the weight on a certain edge is modified. We show by rigorous proof that the well-known {\sf Ball-String} algorithm for positively weighted graphs can be adapted to solve the dynamic SPT problem for directed graphs with arbitrary weights. Let be the number of vertices that are affected (i.e., vertices that have different distances from or different parents in the input and output SPTs) and the number of edges incident to an affected vertex. The adapted algorithms terminate in time, either detecting a negative cycle (only in the decremental case) or constructing a new SPT for the updated graph. We show by an example that the output SPT may have more than necessary edge changes to . To remedy this, we give a general method for transforming into an SPT with minimal edge changes in time provided that has no cycles with zero length.
Cite
@article{arxiv.1903.01756,
title = {Semi-dynamic shortest-path tree algorithms for directed graphs with arbitrary weights},
author = {Sanjiang Li and Yongming Li},
journal= {arXiv preprint arXiv:1903.01756},
year = {2019}
}
Comments
27 pages, 3 figures