Abstract
We present a faster all-pairs shortest paths algorithm for arbitrary real-weighted directed graphs. The algorithm works in the fundamental comparison- addition model and runs in O(mn+n 2 log log n) time, where m and n are the number of edges & vertices, respectively. This is strictly faster than Johnson’s algorithm (for arbitrary edge-weights) and Dijkstra’s algorithm (for positive edge-weights) when m = o(n log n) and matches the running time of Hagerup’s APSP algorithm, which assumes integer edge-weights and a more powerful model of computation.
This work was supported by Texas Advanced Research Program Grant 003658-0029-1999, NSF Grant CCR-9988160, and an MCD Graduate Fellowship.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
T. Cormen, C. Leiserson, R. Rivest. Intro. to Algorithms. MIT Press, 1990.
E. W. Dijkstra. A note on two problems in connexion with graphs. In Numer. Math., 1 (1959), 269–271.
M. L. Fredman, R. E. Tarjan. Fibonacci heaps and their uses in improved network optimization algorithms. In JACM 34 (1987), 596–615.
H. N. Gabow. A scaling algorithm for weighted matching on general graphs. In Proc. FOCS 1985, 90–99.
T. Hagerup. Improved shortest paths on the word RAM. In Proc. ICALP 2000, LNCS volume 1853, 61–72.
D. B. Johnson. Efficient algorithms for shortest paths in sparse networks. J. Assoc. Comput. Mach. 24 (1977), 1–13.
S. Pettie. A faster all-pairs shortest path algorithm for real-weighted sparse graphs. UTCS Technical Report CS-TR-02-13, February, 2002.
S. Pettie. On the comparison-addition complexity of all-pairs shortest paths. UTCS Technical Report CS-TR-02-21, April, 2002.
S. Pettie, V. Ramachandran, S. Sridhar. Experimental evaluation of a new shortest path algorithm. Proceedings of ALENEX 2002.
S. Pettie, V. Ramachandran. Computing shortest paths with comparisons and additions. Proceedings of SODA 2002, 267–276.
R. E. Tarjan. A class of algorithms which require nonlinear time to maintain disjoint sets. J. Comput. Syst. Sci. 18 (1979), no. 2, 110–127.
M. Thorup. Undirected single source shortest paths with positive integer weights in linear time. J. Assoc. Comput. Mach. 46 (1999), no. 3, 362–394.
P. van Emde Boas, R. Kaas, E. Zijlstra. Design and implementation of an efficient priority queue. Math. Syst. Theory 10 (1977), 99–127.
U. Zwick. Exact and approximate distances in graphs-A survey. Updated version at http://www.cs.tau.ac.il/zwick/, Proc. of 9th ESA (2001), 33–48.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Pettie, S. (2002). A Faster All-Pairs Shortest Path Algorithm for Real-Weighted Sparse Graphs. In: Widmayer, P., Eidenbenz, S., Triguero, F., Morales, R., Conejo, R., Hennessy, M. (eds) Automata, Languages and Programming. ICALP 2002. Lecture Notes in Computer Science, vol 2380. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45465-9_9
Download citation
DOI: https://doi.org/10.1007/3-540-45465-9_9
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-43864-9
Online ISBN: 978-3-540-45465-6
eBook Packages: Springer Book Archive