What sequence of operations would give the worst case for fibonacci heaps? Where each node has only one child except for the last node?
For example:
5
|
6
|
7
|
8
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is actually the best case (as you can see, extract-min is always easy, since we have the element ordered). You should get it by inserting a sequence of reverse-sorted elements (that is, the minimal element would come last) in this manner: