Algorithms and Data Structures · Senior · Question 66 of 75

What is the main advantage of Dijkstra with a Fibonacci heap over a binary heap?

Explanation

On dense graphs this beats O((V + E) log V). In practice binary heaps (often with lazy deletion instead of decrease-key) are usually faster because Fibonacci heaps have large constants.

Further reading

Problem with a question

Algorithms and Data Structures · Senior · question 66

Test yourself

Take the Algorithms and Data Structures · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz