



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
Main points of this exam paper are: Implementation, Dynamic Trees Data Structure, Virtual Trees, Actual Trees, Vertex Costs, Admissible Path Algorithm, Algorithm Adds, Next Augmenting Path, Intermediate State, Associated Values
Typology: Exams
1 / 6
This page cannot be seen from the preview
Don't miss anything!




Assuming these trees are used to implement the admissible path algorithm, what is the residual capacity of the edge from j to d?
If the next step in the admissible path algorithm adds an edge from a to j and if this edge has a residual capacity of 5, what is the residual capacity of the next augmenting path?
s
d f
b e
t
5
(^3 )
2
3
6
1
1 2
c
2
3
2
8,
1,
9,
2,
(^70)
2,
5
3
6
1
residual capacity
distance label, excess
s
d f
b e
t
5
(^3 )
2
3
6
1
1 2
c
2
3
2
8,
1,
9,
2,
(^70)
2,
5
3
6
1
residual capacity
distance label, excess
s
d f
b e
s c t
d f
b e
c t
s
d f
b e
s c t
d f
b e
c t
find in the network shown below (the pairs on each edge are the capacity and the cost). Explain. Explain how this example can be generalized to show that the min-cost, augmenting path