Professional Documents
Culture Documents
1
Some of the applications
Telecommunication network
Routing data – best of use bandwidth 2
Frequently Used Algorithm
3
Maximal Flow Algorithm
• Before terminating, the network should also be scanned for reverse flow
augmenting paths and should be updated accordingly
4
Example 1
2
10 6
Flow 2
1 2 4
capacity
3 6
3
5
Example 1
Sent flow
2
6 0
10 0
2 0
2 0
1 4
Flow capacity
3 0
3 6 0
0 6
2
4 6 6 0
10 0
2 0
2 0
Residual 1 4
Capacity
available
3 0
3 6 0
2 8 0 6
2
4 6 6 0
10 0
2 0
2 0
0 2
Residual 1 4
Capacity
available
3 0
3 6 0
4 2 Now flowing thro’ the arc 1-2 and
reaching 4 (sink) is not possible
because, in the arcs 2-4 and 2-3, the
residual capacities are zero.
2 8 0 6
2
4 6 6 0
10 0
2 0
2 0
0 2
Residual 1 4
Capacity
available
3 0
3 6 0
0 3 Now, looking at the network, it is
4 2
observed that there is no forward
1 5
flow augmenting paths.
2 8 0 6
2
4 6 6 0
10 0
2 0
2 0
0 2
Residual 1 4
Capacity
available
3 0
3 6 0
0 3
4 2
1 5
3 2 0
1 0
2 0 5
1 1 0
4
2 0
2 1 0
11
1st revision of flow network
1 1
0 1 3 2 0
1 0
2 0 5
1 1 0
4
2 0
2 1 0
12
2nd revision of flow network
1 1
0 1 3 2 0
1 0
2 0 5
1 1 0
4 0 1
2 0
Now, looking at the network
2 1 0
(after 2nd revision), it is
1 1
observed that there is no flow
0 1
augmenting path.
3 2 0
1 0
2 0 5
1 1 0
4
2 0
2 1 0
1 1
0 1 3 2 0
1 0
2 0 5
1 1
1 2 0 1 0
4 0 1
2 0
Now there is no other
2 1 0
reverse flow augmenting
1 1
path is available.
0 1
Hence algorithm stops.
1 1
0 1 3 2 0
1 0
2 0 5
1 1
1 2 0 1 0
4 0 1
2 0
1 1 2 1 0
Flow Augmenting Paths
0 1
after reversing
1-3-4-5
1-2-4-3-5
Flow Augmenting Path Flow sent
1-3-5 1
1-2-4-5 1
10
2 5
30
40 10 20
1 4
10 7
40
10
15
20
3 6
20
18
Backup
19