Download Fibonacci Heaps - Advanced Data Structures and Algorithms - Quiz and more Exercises Data Structures and Algorithms in PDF only on Docsity!
(4 points) The credit invariant used in the analysis of the Fibonacci heaps data structure states that the number of credits on hand must be at least equal to the number of trees in the collection of heaps, plus twice the number of marked, non-root nodes. How many new credits are needed for each decreaseKey operation? (Recall that credits are needed both to pay for the operation and to maintain the truth of the credit invariant.) Explain your answer.
CS 542 โ Advanced Data Structures and Algorithms
Quiz 2
Jonathan Turner 2/8/
( 6 points) In the analysis of the shortest path version of the augmenting path algorithm Ri was defined to be the residual graph for the flow on the graph following the i - th augmenting path step. In the flow graph below, assume that the first two steps of the augmenting path algorithm select the paths sadt and scet. Draw R 2 and label each vertex u with the value of level 2 ( u ). The shortest augmenting path algorithm selects the edges in the augmenting path from a subset of the edges in Ri. In the example flow graph, which edges are in this set of eligible edges for R 2?