Question

For Dijkstra’s algorithm on a graph with non-negative weights, which data structure yields the best time complexity for dense graphs?

A Binary heap
B Fibonacci heap
C Simple array (scan for min)
D Balanced BST
E Unordered queue
Practice Next

Hey! Ask a query