Questions: Fibonacci Heaps and Amortized Analysis

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Fibonacci heaps achieve O(1) amortized decrease-key while binary heaps require O(log n). Why does this matter for Dijkstra's algorithm?

AIt reduces Dijkstra's space usage from O(n^2) to O(n)
BDijkstra performs O(m) decrease-key operations and O(n) delete-min operations; with Fibonacci heaps, the total cost becomes O(m * 1 + n * log n) = O(m + n log n), improving over the O(m log n) of binary heaps
CIt allows Dijkstra to process negative-weight edges
DIt eliminates the need for the relaxation step in Dijkstra's algorithm
Question 2 Short Answer

The potential function for Fibonacci heap analysis is Phi(H) = t(H) + 2*m(H), where t(H) is the number of trees in the root list and m(H) is the number of marked nodes. Explain why decrease-key has O(1) amortized cost despite potentially triggering a cascade of cuts.

Think about your answer, then reveal below.
Question 3 Multiple Choice

The aggregate method, accounting method, and potential method are three equivalent frameworks for amortized analysis. Which statement correctly distinguishes them?

AThe aggregate method assigns different costs to different operations; the accounting method sums all costs and divides by n; the potential method tracks a bank balance
BThe aggregate method computes the total cost of n operations and divides by n; the accounting method assigns an amortized cost to each operation type (overcharging cheap operations to prepay for expensive ones); the potential method defines a function of the data structure's state, and amortized cost = actual cost + potential change
CThe three methods can give different amortized bounds for the same data structure
DThe potential method is strictly more powerful than the other two
Question 4 True / False

A Fibonacci heap with n nodes can have at most O(log n) children per node. This bound follows from the Fibonacci sequence — specifically, a node of degree k has at least F_{k+2} >= phi^k descendants, where phi is the golden ratio.

TTrue
FFalse
Question 5 True / False

Binary heaps are always preferred over Fibonacci heaps in practice because Fibonacci heaps have better theoretical bounds.

TTrue
FFalse