Match the following time complexities of Dijkstra’s algorithm with the…
Match the following time complexities of Dijkstra’s algorithm with the corresponding priority queue implementations.
List-A List-B
P: Binary heap X: O(v2 )
Q: Array Y: O(E log2 V)
R: Fibonacci Heap Z: O(V log2 V +E)
- A.
P-Y, Q-Z, R-X
- B.
P-Z, Q-Y, R-X
- C.
P-Y, Q-X, R-Z
- D.
P-X, Q-Y, R-Z
Attempted by 294 students.
Sign up free to check your answer
Sign up freeLoading lesson…

