Please enable JavaScript.
Coggle requires JavaScript to display documents.
Dijkstra's Algorithm - Coggle Diagram
Dijkstra's Algorithm
-
-
-
Time efficiency:
Depends on the data structures used for implementing the priority queue and for representing an input graph itself.
BigTheta (|V|^2) for graphs represented by their weight matrix and the priority queue implemented as an unordered array.
O(|E| log |V |) for graphs represented by their adjacency lists and the priority queue implemented as a min-heap.