1 / 8

110 likes | 291 Vues

Network Flow Back Flow. Here is an example that involves what is called ‘back flow’. The 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.

Télécharger la présentation
## Network Flow 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

**Network Flow Back Flow**Here is an example that involves what is called ‘back flow’ The 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**Network Flow 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**Network Flow 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**Network Flow 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**Network Flow 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**Network Flow Back Flow**Remember that a flow augmenting path is any path from S to T following non-zero arrows. The path SADCBT is such a path. What is different about this path is that when following the edge DC we are going against the direction of the edge – hence the term back flow. Are there any more flow augmenting paths? 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**Network Flow 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. Are there any more flow augmenting paths? 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**Network Flow 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