As per my understanding, I have calculated time complexity of Dijkstra Algorithm as big-O notation using adjacency list given below. It didn\'t come out as it was supposed t
In dense(or complete) graph, E logV > V^2
E logV > V^2
Using linked data & binary heap is not always best.
That case, I prefer to use just matrix data and save minimum length by row.
Just V^2 time needed.
V^2
In case, E < V / logV.
E < V / logV
Or, max edges per vertex is less than some constant K.
K
Then use binary heap.