Download presentation
Presentation is loading. Please wait.
1
Section 4.2 Network Flows By Christina Touhey
2
The flow out of a equals the flow into z. Algorithm 1.Make vertex a: (0, ). 2.Scan the first vertex and check each incoming and outgoing edge and label if they are unlabeled. 3.Choose another labeled vertex to scan and label. 4.Find an a-z chain K of slack edges by backtracking. 5.Increase the flow in the edges of K by units. Recall from last class
3
a b c d e z 12 10 12 18 5 4 8 Example: Find the maximal a-z flow in the network. a b c d e z 12,9 10,5 10,10 12,10 18,14 5,5 4,4 8,0 a b c d e z 3 5 2 4 8 Slack Max Flow=19
4
Theorem 3 For any given a-z flow, a finite number of applications of the augmenting flow algorithm yields a maximum flow. If P is the set of vertices labeled during the final application of the algorithm then is a minimal a-z cut set.
5
If is the current flow and is the augmenting a-z unit flow chain, we must show the new flow + m is a legal flow. and satisfy flow conditions: and are integer valued. Proof of Theorem 3
6
Where m and is the amount of additional flow that can be sent from a-z. Proof of Theorem 3 (cont.)
7
Since m is a positive integer, each new flow is increased. The capacities and the number of edges are finite, so eventually z is not labeled. Let P be the set of labeled vertices when z is not labeled. Clearly is an a-z cut since a is labeled and z is not.
8
There is no unsaturated edge from labeled vertex p to unlabeled vertex q or else it would have been previously labeled. Therefore there is no flow between q and p because Proof of Theorem 3 (cont.)
9
Max Flow-Min Cut Theorem In a directed flow network, the value of a maximal a-z flow is equal to the capacity of a minimal a-z cut.
10
For Class to try Find a maximal flow from a to z in the network. Give a minimal capacity a-z cut. 10 20 5 5 5 30 a b c d e f g z
11
10,10 10,5 10,10 20,20 20,0 20,20 5,5 5,0 30,20 a b c d e f g z Max Flow=50
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.