Professional Documents
Culture Documents
The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem
2
3
2
5
1
1 2
s
3
4
1
2
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
2
3
2
5
1
1 2
s
3
4
1
2
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
2
3
2
5
1
1 1 2
s
2 3 1
4
1
2 1
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
Determine the capacity of the path. Send units of flow in the path. Update residual capacities.
5
2
3
2
5
1
1 1 2
s
2 3 1
4
1
2 1
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
2
3
2 1
5
1
1 1 1 1
s
2 3 1
4
1
2 1 1 1
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
Determine the capacity of the path. Send units of flow in the path. Update residual capacities.
7
2
3
2 1
5
1
1 1 1 1
s
2 3 1
4
1
2 1 1 1
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
2
3
1
5
1
1 1 1 1 2
s
2 3 1
4
1
1 1 2 1
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
Determine the capacity of the path. Send units of flow in the path. Update residual capacities.
9
2
3
1 2
5
1
1 1 1 1 2
s
2 3 1
4
1
1 1 2 1
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
10
2
3
1 2
5
1
1 1 1 1 2
s
1 2 2 1
4
1
1 2 1
1 2
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
Determine the capacity of the path. Send units of flow in the path. Update residual capacities.
11
2
3
1 2
5
1
1 1 1 1 2
s
1 2 2 1
4
1
2 1
1 2
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
12
2
3 2
1
5
1 1
s
1 2 2 1
1 2
4
1
2 1
1 2
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
Determine the capacity of the path. Send units of flow in the path. Update residual capacities.
13
2
3 2
1
5
1 1
s
1 2 2 1
1 2
4
1
2 1
1 2
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
2
3 2
1
5
1 1
s
1 2 2 1
1 2
4
1
2 1
1 2
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
15
2
1
2
5
1
2
s
2
4
2
3
4 3 2 s 3 4 1 3 2 1 1 2 2 5 1 t
16
MITOpenCourseWare http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.