Advertisement

Journal of Combinatorial Optimization

, Volume 25, Issue 2, pp 326–337 | Cite as

A simplified algorithm for the all pairs shortest path problem with O(n 2logn) expected time

  • Tadao Takaoka
Article

Abstract

The best known expected time for the all pairs shortest path problem on a directed graph with non-negative edge costs is O(n 2logn) by Moffat and Takaoka. Let the solution set be the set of vertices to which the given algorithm has so far established shortest paths. The Moffat-Takaoka algorithm maintains complexities before and after the critical point in balance, which is the moment when the size of the solution set is nn/logn. In this paper, we remove the concept of critical point, whereby we make the algorithm simpler and seamless, resulting in a simpler analysis.

Keywords

Algorithm All pairs shortest paths Expected time Priority queue 

References

  1. Bloniarz P (1983) A shortest path algorithm with expected time O(n 2lognlog n). SIAM J Comput 12:588–600 MathSciNetzbMATHCrossRefGoogle Scholar
  2. Chan T (2007) More algorithms for all pairs shortest paths. In: STOC 2007, pp 590–598 Google Scholar
  3. Dantzig G (1960) On the shortest route in a network. Manag Sci 6:269–271 Google Scholar
  4. Feller WH (1968) An introduction to probability and its applications, vol 1, 3rd edn. John-Wiley, New York zbMATHGoogle Scholar
  5. Fredman M, Tarjan R (1987) Fibonacci heaps and their uses in improved network optimization problems. J ACM 34:596–615 MathSciNetCrossRefGoogle Scholar
  6. Goldberg AV, Tarjan RE (1996) Expected performance of Dijkstra’s shortest path algorithm. Technical report 96-062, NEC Research Institute, Inc, June 1996. URL: http://www.avglab.com/andrew/pub/neci-tr-96-062.ps
  7. Han Y, Takaoka T (2012) An O(n 3loglogn/log2 n) time algorithm for ALl pairs shortest paths. In: SWAT 2012. LNCS, vol 7357, pp 131–141 Google Scholar
  8. Mehlhorn K, Priebe V (1997) On the all-pairs shortest path algorithm of Moffat and Takaoka. Random Struct Algorithms 10:205–220 MathSciNetzbMATHCrossRefGoogle Scholar
  9. Moffat A, Takaoka T (1987) An all pairs shortest path algorithm with expected running time O(n 2logn). SIAM J Comput 16:1023–1031 MathSciNetzbMATHCrossRefGoogle Scholar
  10. Pettie S (2004) A new approach to all pairs shortest paths on real weighted graphs. Theor Comput Sci 312:47–74 MathSciNetzbMATHCrossRefGoogle Scholar
  11. Spira P (1973) A new algorithm for finding all shortest paths in a graph of positive arcs in average time O(n 2log2 n). SIAM J Comput 2:28–32 MathSciNetzbMATHCrossRefGoogle Scholar
  12. Takaoka T, Moffat A (1980) An O(n 2lognloglogn) expected time algorithm for the all pairs shortest path problem. In: MFCS 1980. LNCS, vol 88, pp 643–655 Google Scholar

Copyright information

© Springer Science+Business Media, LLC 2012

Authors and Affiliations

  1. 1.Department of Computer ScienceUniversity of CanterburyChristchurchNew Zealand

Personalised recommendations