Abstract

Given an arbitrary, non-negatively weighted, directed graph G=(V,E)G=(V,E) we present an algorithm that computes all pairs shortest paths in time O(m∗n+mlg⁡n+nTψ(m∗,n))\mathcal{O}(m^* n + m \lg n + nT_ψ(m^*, n)), where m∗m^* is the number of different edges contained in shortest paths and Tψ(m∗,n)T_ψ(m^*, n) is a running time of an algorithm to solve a single-source shortest path problem (SSSP). This is a substantial improvement over a trivial nn times application of ψψ that runs in O(nTψ(m,n))\mathcal{O}(nT_ψ(m,n)). In our algorithm we use ψψ as a black box and hence any improvement on ψψ results also in improvement of our algorithm. Furthermore, a combination of our method, Johnson's reweighting technique and topological sorting results in an O(m∗n+mlg⁡n)\mathcal{O}(m^*n + m \lg n) all-pairs shortest path algorithm for arbitrarily-weighted directed acyclic graphs. In addition, we also point out a connection between the complexity of a certain sorting problem defined on shortest paths and SSSP.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.