Article ID Journal Published Year Pages File Type
430858 Journal of Discrete Algorithms 2014 14 Pages PDF
Abstract

In this paper we present hybrid algorithms for the single-source shortest-paths (SSSP) and for the all-pairs shortest-paths (APSP) problems, which are asymptotically fast when run on graphs with few destinations of negative-weight arcs. Plainly, the case of graphs with few sources of negative-weight arcs can be handled as well, using reverse graphs. With a directed graph with n nodes and m   arcs, our algorithm for the SSSP problem has an O(ℓ(m+nlogn+ℓ2))-time complexity, where ℓ   is the number of destinations of negative-weight arcs in the graph. In the case of the APSP problem, we propose an O(nm⁎+n2logn+ℓn2) algorithm, where m⁎m⁎ is the number of arcs participating in shortest paths. Notice that m⁎m⁎ is likely to be small in practice, since m⁎=O(nlogn) with high probability for several probability distributions on arc weights.

Related Topics
Physical Sciences and Engineering Computer Science Computational Theory and Mathematics
Authors
, ,