Dijkstra's algorithm: Difference between revisions

no edit summary
No edit summary
Line 862:
Total distance = 20</pre>
 
 
The priority queue is implemented as a binary heap. The heap stores an index into its data array, so it can quickly update the weight of an item already in it.
=={{header|C}}==
The priority queue is implemented as a binary heap. The heap stores an index into its data array, so it can quickly update the weight of an item already in it.
101

edits