Skip to main content
QUICK REVIEW

[Paper Review] Fully Dynamic All Pairs All Shortest Paths

Matteo Pontecorvi, Vijaya Ramachandran|arXiv (Cornell University)|Dec 11, 2014
Complex Network Analysis TechniquesPhysics and Astronomy13 references5 citations
TL;DR

This paper presents fully dynamic algorithms for maintaining all pairs all shortest paths (APASP) in directed graphs with positive edge weights, supporting both edge weight increases and decreases. It achieves an amortized time complexity of $O({ u^{*}}^{2}/log^{3}n)$ per update, matching the best-known bound for unique shortest paths, and extends to fully dynamic betweenness centrality with the same efficiency.

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)$ 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({ν^*}^2 \cdot \log^3 n)$ time per update, where $n = |V|$, and $ν^*$ 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.

Motivation & Objective

  • To develop fully dynamic algorithms for maintaining all shortest paths between all pairs of vertices in directed graphs with positive edge weights.
  • To support both edge weight increases and decreases (fully dynamic updates), extending prior work limited to decrease-only or increase-only updates.
  • To maintain all multiple shortest paths for every vertex pair, enabling exact computation of betweenness centrality in dynamic networks.
  • To achieve amortized time bounds matching or improving upon existing fully dynamic APSP algorithms, even in the presence of multiple shortest paths.
  • To provide a new amortized analysis for the Demetrescu–Italiano algorithm by introducing a novel 'dummy sequence' mechanism.

Proposed method

  • Generalizes the fully dynamic APSP algorithm of Demetrescu and Italiano (DI) to handle multiple shortest paths by extending their data structures and update procedures.
  • Uses a layered data structure with local and global components to maintain left and right shortest path extensions (LHPs and RHPs) and their counts.
  • Employs a priority queue $H_f$ to process triples $(xa, by)$ representing paths from $x$ to $y$ via intermediate nodes, with key $[wt, x, y]$ for path weight and endpoints.
  • Introduces a 'dummy sequence' to replace the original DI sequence, enabling a new amortized analysis that applies to the APASP setting.
  • Leverages techniques from Thorup's faster APSP algorithm to reduce the amortized bound by a logarithmic factor using advanced data structures for path counting and extension.
  • Maintains path counts via hierarchical structures ($P(x,y)$, $P^*$, $dict_j$) and control bits ($\beta$) to track newly discovered paths and ensure correctness during updates.

Experimental results

Research questions

  • RQ1Can fully dynamic algorithms for APASP be designed that correctly maintain all multiple shortest paths under both edge weight increases and decreases?
  • RQ2Can the amortized time complexity of fully dynamic APASP be matched with that of the original Demetrescu–Italiano algorithm for unique shortest paths, even when multiple paths exist?
  • RQ3Can the techniques from Thorup's faster APSP algorithm be adapted to the multiple-paths setting to achieve a $\log n$-factor improvement in update time?
  • RQ4Can the proposed APASP algorithms be used to maintain betweenness centrality dynamically with the same amortized bounds?
  • RQ5Can a new amortized analysis be provided for the Demetrescu–Italiano algorithm by replacing its original sequence with a 'dummy sequence' that works in the multiple-paths context?

Key findings

  • The basic algorithm achieves an amortized update time of $O({ u^{*}}^{2}\ olimits\log^{3}n)$, matching the DI bound for unique shortest paths when $\nu^*$ is small.
  • The algorithm correctly maintains all multiple shortest paths for every pair of vertices under both weight increases and decreases, extending prior decrease-only and increase-only methods.
  • A faster variant reduces the amortized time to $O({ u^{*}}^{2} olimits\log^{2}n)$ by incorporating advanced data structures inspired by Thorup's method.
  • The APASP algorithms directly yield fully dynamic betweenness centrality computation with the same amortized bounds, enabling efficient updates in dynamic complex networks.
  • The paper provides a new amortized analysis for the Demetrescu–Italiano algorithm by introducing a 'dummy sequence' that ensures correctness and efficiency in the multiple-paths setting.
  • The correctness of the algorithms is proven via a loop invariant that ensures all shortest paths and their counts are correctly maintained in the data structures during updates.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.