



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




are the key values. The ranks are not shown. Show how the heap structure changes following a deletemin operation. Perform the linking steps from left to right – that is always combine the leftmost pair of trees that are “eligible” to be combined.
- Exam CS 542 – Advanced Data Structures and Algorithms If the vertices are scanned in topological order, what is the total number of times that a vertex is scanned?
Suppose the vertices are scanned in the most inefficient possible order. How many times are vertices scanned in this case? Explain.
Generalize the example to show that the scanning and labeling method can take Ω(2 n ) time in the worst-case.
Let T be a spanning tree of G with root s and let bcap ( u ) be the bottleneck capacity of the path from s to u in T. Show that if T is a best bottleneck path tree, then bcap ( v )≥min{ bcap ( u ), cap ( u , v )}, for all edges ( u , v ) in G.
Show that if there is a non-tree path p from s to some vertex x , that has bottleneck capacity larger than bcap ( x ), then there must be some edge ( u , v ) for which bcap ( v )<min{ bcap ( u ), cap ( u , v )}.
Give an upper bound on the residual capacity of an edge with one endpoint in X and the other in X ′. Justify your answer.
Suppose there are 40 edges that cross the cut ( X , X ′) that have residual capacity of at least 100 (from the endpoint in X to the endpoint in X ′). Give an upper bound on the number of augmenting paths that can be found before the end of this scaling phase. Justify your answer.
Suppose that in the original graph, all edge capacities are multiples of 25 and that the largest edge capacity is 400. Give an upper bound on the number of scaling phases in which at least one augmenting path is found. Justify your answer.
What is the flow on edge ( e , h )?
What is the residual capacity of edge ( f , t )?
Show the state of the dynamic trees data structure at the point the next search for an augmenting path reaches the sink. Be sure to show all the node costs.
Show the changes to the flow values in the flograph data structure after flow is added to the augmenting path found by this search. You may just mark the changes on the diagram above.