English

Fully Dynamic All Pairs All Shortest Paths

Data Structures and Algorithms 2022-04-21 v4

Abstract

We consider the all pairs all shortest paths (APASP) problem, which maintains all of the multiple shortest paths for every vertex pair in a directed graph G=(V,E)G=(V,E) with a positive real weight on each edge. We present two fully dynamic algorithms for this problem in which an update supports either weight increases or weight decreases on a subset of edges incident to a vertex. Our first algorithm runs in amortized O(ν2log3n)O({\nu^*}^2 \cdot \log^3 n) time per update, where n=Vn = |V|, and ν\nu^* bounds the number of edges that lie on shortest paths through any single vertex. Our APASP algorithm leads to the same amortized bound for the fully dynamic computation of betweenness centrality (BC), which is a parameter widely used in the analysis of large complex networks. Our method is a generalization and a variant of the fully dynamic algorithm of Demetrescu and Italiano [DI04] for unique shortest path, and it builds on our recent decremental APASP [NPR14]. Our second (faster) algorithm reduces the amortized cost per operation by a logarithmic factor, and uses new data structures and techniques that are extensions of methods in a fully dynamic algorithm by Thorup.

Keywords

Cite

@article{arxiv.1412.3852,
  title  = {Fully Dynamic All Pairs All Shortest Paths},
  author = {Matteo Pontecorvi and Vijaya Ramachandran},
  journal= {arXiv preprint arXiv:1412.3852},
  year   = {2022}
}

Comments

In addition to few updates to the original document (v3), in this new manuscript we have added a faster version of our algorithm (previously available on ArXiv at arXiv:1506.05783) that reduces the amortized cost per operation by a logarithmic factor

R2 v1 2026-06-22T07:28:36.405Z