1 / 13

Here is an example that involves what is called ‘back flow’

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. 0. 20. 0. 0. 0. 10. S. T. 9. 23. 18. 0. 0. 0. 15. C. D. 0.

rania
Download Presentation

Here is an example that involves what is called ‘back flow’

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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 0 20 0 0 0 10 S T 9 23 18 0 0 0 15 C D 0

  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. 0 10 11 A B 21 0 10 10 20 0 0 0 10 10 10 S T 9 23 18 0 0 0 15 C D 0

  3. Network Flows – Back flow To start with let’s choose the flow augmenting path SABT. The arc AB is now saturated. 0 10 11 A B 21 0 10 10 20 0 0 0 10 10 10 S T 9 23 18 0 0 0 15 C D 0

  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. 0 10 11 A B 21 0 10 10 20 0 0 0 10 10 10 S T 8 9 23 3 18 0 0 15 0 15 0 15 C D 0 15

  5. Network Flows – Back flow Our next flow augmenting path is SCDT. Arc CD is now saturated. 0 10 11 A B 21 0 10 10 20 0 0 0 10 10 10 S T 8 9 23 3 18 0 0 15 0 15 0 15 C D 0 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. 0 10 11 A B 21 0 10 3 10 20 0 2 0 0 10 10 10 8 18 S T 8 0 9 23 3 18 0 0 15 0 15 0 23 15 C D 0 15

  7. Network Flows – Back flow Consider now the flow augmenting path SCBT. Arc SC is now saturated. 0 10 11 A B 21 0 10 3 10 20 0 2 0 0 10 10 10 8 18 S T 8 0 9 23 3 18 0 0 15 0 15 0 23 15 C D 0 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. 0 10 11 A B 21 0 7 10 3 10 20 0 2 0 0 10 10 13 10 8 18 S T 8 0 9 6 23 0 3 18 0 0 3 15 0 15 0 23 15 18 C D 0 15

  9. Network Flows – Back flow Another flow augmenting path is SADT. Arc DT is now saturated. 0 10 11 A B 21 0 7 10 3 10 20 0 2 0 0 10 10 13 10 8 18 S T 8 0 9 6 23 0 3 18 0 0 3 15 0 15 0 23 15 18 C D 0 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. 0 10 11 A B 21 0 7 10 3 10 20 0 2 0 0 10 10 13 10 8 18 S T 8 0 9 6 23 0 3 18 0 0 3 15 0 15 0 23 15 18 C D 0 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. 0 10 11 A B 21 0 5 7 10 3 1 10 20 0 0 2 0 0 10 10 13 10 8 15 10 18 20 S T 8 0 9 6 23 4 0 3 18 0 5 2 0 3 15 0 15 0 23 15 18 C D 0 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. 0 10 11 A B 21 0 5 7 10 3 1 10 20 0 0 2 0 0 10 10 13 10 8 15 10 18 20 S T 8 0 9 6 23 4 0 3 18 0 5 2 0 3 15 0 15 0 23 15 18 C D 0 15 13

  13. Network Flows – Back flow We have a flow of 23 + 15 = 38 out of the source and 20 + 18 = 38 into the sink. This is the maximum flow. The flows are equal to all the arrows going against the direction of the edges. 0 10 20 10 11 A B 15 21 0 5 3 10 3 1 10 20 0 0 2 0 0 10 10 17 10 8 15 10 18 20 S T 8 0 10 9 6 23 4 0 3 18 0 5 2 5 0 3 15 0 15 0 23 15 23 18 C D 18 0 15 13 13

More Related