Download presentation
Presentation is loading. Please wait.
1
Network Flows – Back flow
Here is an example that involves what is called ‘back flow’ Arrows have already been drawn initially showing the capacities and initial flows of zero along all of the edges. 10 A B 21 20 10 S T 23 9 18 15 C D
2
Network Flows – Back flow
To start with let’s choose the flow augmenting path SABT. The minimum excess capacity along this path is 10, so we increase the flow by 10. Arrows in the direction of the path are decreased by 10 and arrows against the direction of the path are increased by 10. 10 A B 11 21 10 10 20 10 10 10 S T 23 9 18 15 C D
3
Network Flows – Back flow
To start with let’s choose the flow augmenting path SABT. The arc AB is now saturated. 10 A B 11 21 10 10 20 10 10 10 S T 23 9 18 15 C D
4
Network Flows – Back flow
Our next flow augmenting path is SCDT. The minimum excess capacity along this path is 15, so we increase the flow by 15. Arrows in the direction of the path are decreased by 15 and arrows against the direction of the path are increased by 15. 10 A B 11 21 10 10 20 10 10 10 S T 8 23 9 3 18 15 15 15 C D 15
5
Network Flows – Back flow
Our next flow augmenting path is SCDT. Arc CD is now saturated. 10 A B 11 21 10 10 20 10 10 10 S T 8 23 9 3 18 15 15 15 C D 15
6
Network Flows – Back flow
Consider now the flow augmenting path SCBT. The minimum excess capacity along this path is 8, so we increase the flow by 8. Arrows in the direction of the path are decreased by 8 and arrows against the direction of the path are increased by 8. 10 A B 11 21 10 3 10 20 2 10 10 10 8 18 S T 8 23 9 3 18 15 23 15 15 C D 15
7
Network Flows – Back flow
Consider now the flow augmenting path SCBT. Arc SC is now saturated. 10 A B 11 21 10 3 10 20 2 10 10 10 8 18 S T 8 23 9 3 18 15 23 15 15 C D 15
8
Network Flows – Back flow
Another flow augmenting path is SADT. The minimum excess capacity along this path is 3, so we increase the flow by 3. Arrows in the direction of the path are decreased by 3 and arrows against the direction of the path are increased by 3. 10 A B 11 21 7 10 3 10 20 2 10 10 13 10 8 18 S T 8 23 9 6 3 18 3 15 15 23 15 18 C D 15
9
Network Flows – Back flow
Another flow augmenting path is SADT. Arc DT is now saturated. 10 A B 11 21 7 10 3 10 20 2 10 10 13 10 8 18 S T 8 23 9 6 3 18 3 15 15 23 15 18 C D 15
10
Network Flows – Back flow
Are there any more flow augmenting paths? Remember that a flow augmenting path is any path from S to T following non-zero arrows. The path SADCBT is such a path. Although arc CD is saturated, in this path we are going against the direction of the arc – hence the term back flow. 10 A B 11 21 7 10 3 10 20 2 10 10 13 10 8 18 S T 8 23 9 6 3 18 3 15 15 23 15 18 C D 15
11
Network Flows – Back flow
What is actually happening is that flow along CD is being diverted along CB which means that DT is able to take more flow from AD as a result. The minimum excess capacity along SADCBT is 2 and so the flow changes by 2. All arrows in the direction of the path are reduced by 2, All arrows against the direction of the path are increased by 2. 10 A B 11 21 5 7 10 3 1 10 20 2 10 10 13 10 8 15 10 18 S 20 T 8 23 9 6 4 3 18 5 2 3 15 15 23 15 18 C D 15 13
12
Network Flows – Back flow
What is actually happening is that flow along CD is being diverted along CB which means that DT is able to take more flow from AD as a result. Arc CB is now saturated, and arc DC is no longer saturated. 10 A B 11 21 5 7 10 3 1 10 20 2 10 10 13 10 8 15 10 18 S 20 T 8 23 9 6 4 3 18 5 2 3 15 15 23 15 18 C D 15 13
13
Network Flows – Back flow
We have a flow of = 38 out of the source and = 38 into the sink. This is the maximum flow. The flows are equal to all the arrows going against the direction of the edges. 10 20 10 A B 11 15 21 5 3 10 3 1 10 20 2 10 10 17 10 8 15 10 18 S 20 T 8 10 23 9 6 4 3 18 5 2 5 3 15 15 23 15 23 18 C D 18 15 13 13
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.