CS4102 Algorithms
Fall 2018 Warm up: Remember Residual Graphs
- Keep track of net available flow along each edge
- “Forward edges”: weight is equal to available flow along that edge in the
flow graph
– 𝑥 𝑓 = 𝑑 𝑓 − 𝑔(𝑓)
- “Back edges”: weight is equal to flow along that edge in the flow graph
– 𝑥 𝑓 = 𝑔(𝑓)
1
1/3 1/3 2/3 0/1 𝑡 𝑢 2/2 2/2 1/1 2/3 1/2 1/2 2/3 𝑡 𝑢 2 2 1 3 2 3 1 1 Flow Graph 𝑯 1 2 2 1 2 1 Residual Graph 𝑯𝒈 1