




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Six exam questions related to various algorithms topics, including minimum spanning trees (prim's algorithm), fibonacci heaps, dijkstra's algorithm, and maximum flow. The questions cover finding siblings in a fibonacci heap, computing second-best next hop vertices, maintaining properties of a balanced binary search tree, and finding augmenting paths in the edmonds-karp algorithm.
Typology: Exams
1 / 8
This page cannot be seen from the preview
Don't miss anything!





Be neat and concise, but complete.
Final Exam Jonathan Turner 12/13/
What are the values of the four pointers associates with item 3 (identify each of the pointers)?
How many children did item 3 have when it first became a child of item 7?
How many children did item 10 have when it first became a child of item 8?
Suppose the item 2 is deleted from the heap. Modify the printout to show the effect of this.
Generalize this example to obain an n vertex graph on which Dijkstra’s algorithm performs Ω( n^2 ) changekey operations. Draw a diagram of this graph and explain why Dijkstra’s algorithm does require Ω( n^2 ) changekey operations.
v 1 1 v 2 v 3 v 4 v 5
6
(^111)
6
6
4
2
4
v 1 1 v 2 v 3 v 4 v 5
6
(^111)
6
6
4
2
4
Apply two steps of the minimum cost augmenting path algorithm. Show the changes resulting from the first step by modifying the first figure. Show these changes and the changes resulting from the second step by modifying the second figure.
blossoms indicated by the shaded areas.
Draw a picture of the partition data structure associated with this state of the computation (there is no single right answer here, but your answer should be consistent with the figure).
For each blossom, identify its bridge , by marking it with the letter B.
What is the augmenting path found if edge { g , l } is examined next?
List the edges in the matching, after the corresponding augmentation is performed.
j c
d g i
k
b e h
f
l m n
q
p
r
j c
d g i
k
b e h
f
l m n
q
p
r