Dijkstra's algorithm: Difference between revisions

Content deleted Content added
=References= expand the reference
Fibonacci heap needed to achievementioned running time
Line 40:
 
 
Dijkstra's algorithm can be implemented efficiently by storing the graph in the form of adjacency lists and using a [[Fibonacci heap]] as [[priority queue]] to implement the Extract-Min function.
If the graph has ''m'' edges and ''n'' vertices, then the algorithm's time requirements are Θ(''m'' + ''n'' log ''n'') (see [[Big O notation]]), assuming that comparisons of edge weights take constant time.