Main points of this past exam are: Advanced Data Structures, Intermediate State, Dinic's, Algorithm, Dynamic Trees, Residual Graph, Pathset Data Structure, Heavy Edges, Expose Operation, Light Edges
Download Intermediate State - Advanced Data Structures and Algorithms - Quiz and more Exercises Data Structures and Algorithms in PDF only on Docsity!
1 -
( 5 points) The diagram below shows an intermediate state in the execution of Dinic’s algorithm with dynamic trees (the tree edges are shown in bold and the costs are written next to the vertices). Draw the residual graph that corresponds to this flow. CS 542 – Advanced Data Structures and Algorithms Quiz 5 Jonathan Turner 4/11/ a b c d s h g f e t
H
H^1
H
cost 4,-
2 -
( 5 points) In the analysis of the pathset data structure, we introduced the notion of heavy and light edges. In the tree below, mark the heavy edges with an X. Suppose we do an expose operation at node u on a pathset with 500 vertices. Give an upper bound on the number of light edges in the path containing u immediately after the expose.