Docsity

Max Flow-Min Cut Theorem: Transforming Node Capacities into Arc Capacities - Prof. Katta G, Study notes of Systems Engineering

Toggle sidebar
bg1
3.1
Single Commodity Maximum Flow Problem
Katta G. Murty, IOE 612 Lecture slides 3
Simple Transformations
1. To get a model with a single source: If many souce
nodes with specified availabilities, can introduce Supersource
And convert problem into one with a single source.
Original model
Source Availability
1a1units
2a2
.
.
..
.
.
ra
r
2. To get a model with a single sink: If many sink
nodes with specified requirements, can introduce Supersink and
convert problem into one with a single sink.
87
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c

Partial preview of the text

Download Max Flow-Min Cut Theorem: Transforming Node Capacities into Arc Capacities - Prof. Katta G and more Study notes Systems Engineering in PDF only on Docsity!

Single Commodity Maximum Flow Problem

Katta G. Murty, IOE 612 Lecture slides 3

Simple Transformations

  1. To get a model with a single source: If many souce nodes with specified availabilities, can introduce Supersource And convert problem into one with a single source.

Original model Source Availability 1 a 1 units 2 a 2 ... ... r a (^) r

  1. To get a model with a single sink: If many sink nodes with specified requirements, can introduce Supersink and convert problem into one with a single sink.

Original model Sink Requirement 1 at least b 1 units 2 exactly b 2 ... ... r... a (^) r Another way to handle requirement of at least b 1 at a node 1 is to make lower bound and capacity on arc (1, t) equal to 0, b 1 respectively and look for a flow that saturates this arc.

  1. Transforming node capacities into arc capacities: If node i has transit capacity of ci split node i into a pair of ad- jacent nodes (one,i 1 say, that acts as receiving end of node i handling incoming flow; the other, i 2 say, that acts as ship- ping end of node i handling outgoing flow) as below.

Some results

Given G = (N , A, `, k, s, t) with |N | = n, |A| = m problem is to find (f, v) to:

max v

s. to f (i, N ) − f (N , i) =

    

v if i = s 0 if i 6 = s or t −v if i = t ` ≤ f ≤ k

DEFINITION: Net flow in f across a cut [X, X¯]: Let f be a feasible flow vector in G and [X, X¯] a cut separating s and t. Then the net flow in f across this cut is defined to be : f (X, X¯) − f ( X, X¯ ).

Results

  1. For any feasible flow vector of value v, the net flow across any cut separating s and t is v.
  2. Flow value of any feasible flow vector is ≤ capacity of any cut separating s and t. So maximum flow value ≤ minimum cut capacity.
  3. If fˆ is a feasible flow of value ˆv, and [Y, Y¯ ] is a cut separating s and t, and ˆv = k(Y, Y¯ ) − `( Y , Y¯ ) = capacity of cut [Y, Y¯ ]; then fˆ = a maximum flow vector, and [Y, Y¯ ] = a minimum capacity cut.
  4. A feasible flow vector in G is of maximum value iff there exists no FAP from s to t WRT it.

If sink is in the label tree (i.e., t ∈ X) (event called Break- through) then there is an FAP from s to t WRT f. If label tree stops growing without sink getting labeled (i.e., t 6 ∈ X, this event called Nonbreakthrough), there is no FAP from s to t WRT f , then f is a maximum flow.

  1. The max flow min cut theorem: If a feasible flow vector exists in G, Maximum flow value = minimum cut capacity.

Duality Interpretation

For simplicity assume ` = 0. Dual of max flow problem is:

min z(π, u) = ∑ kij u (^) ij s. to π (^) j − π (^) i + u (^) ij ≥ 0 ∀(i, j) ∈ A π (^) s − π (^) t = 1 π (^) t = 0 u (^) ij ≥ 0 ∀(i, j) ∈ A

“π (^) t = 0” comes from eliminating the redundant flow conserva- tion eq. of node t.

Theorem: Every extreme pt. of the dual system corresponds to a cut separating s and t through the following: If (¯π, u¯) is an extreme pt., then all ¯π (^) i , u¯ (^) ij are 0 − 1, and if X¯ = {i : ¯π = 0}, X = {i : ¯π = 1}, then [X, X¯] is a cut separating s and t, and:

u¯ (^) ij =

  

1 iff (i, j) ∈ (X, X¯) 0 otherwise

1. Single path Labeling methods for max

flow

To find max flow in G = (N , A, , k, s, t). Phase I: Finds a feasible flow first. If = 0, f = 0 will do. Algorithms for Phase I when ` 6 = 0 are based on applying Phase II on a modified network.

Phase II: Find a max flow beginning with an initial feasible flow f 0.

We discuss algorithms for Phase II first.

residual capacity of P, and new feasible flow vector fˆij = ( fˆij), where:

fˆij =

        

f^ ¯ij +  if (i, j) forward P

f^ ¯ij −  if (i, j) reverse on P

f^ ¯ij if (i, j) not on P Chop down present tree (i.e., erase labels on all nodes) and go back to Step 1.

Step 4: Termination: Present flow vector is a maximum flow, terminate. X = set of labeled nodes, X¯ = complement of X, then [X, X¯] is a min cut.

Analysis when bounds irrational F & F constructed ex-

ample to show algo. may not work. Let α = (−1 + √5)/2, β = ∑∞ r=0 α r.

Not all arcs shown. Other arcs are: (x (^) i , yj ), (yi , yj ), (yi , x (^) j) ∀i 6 = j. All lower bounds = 0. All capacities β other than 4 shown in fig. Initial feasible flow f 0 of value 1 shown in fig. F & F constructed a sequence of feasible flows {f r: r = 0, 1,.. .} s. th. f r+1^ obtained by augmenting f r^ ∀r, and values v r^ ↑ β, while maximum flow value is 4β.

1.2 : Scanning version: Each labeled node is scanned to label all unlabeled nodes that can be labeled from it. List = set of labeled and unscanned nodes.

Step 1: Rooted tree planting: Let f¯ be the current feasible flow vector of value ¯v. Label s with ∅. List = {s}.

Step 2.1: Selecting a node from List to scan: If List = ∅, go to Step 4. Otherwise, delete a node i from list to scan.

Step 2.2: Scanning node i: (i) Forward labeling Label all j unlabeled s. th., (i, j) ∈ A, and f¯ij < kij with (i, +) and put all such j in List.

(i) Reverse labeling rule Label all j unlabeled, s. th. (j, i) ∈ A, and f¯ji > `ji with (i, −) and put all such j in List.

If t now labeled go to Step 3. Otherwise go to Step 2.1. Steps 3, 4: Same as in initial version.

Sometimes better than initial version, but worst case behavior same as that of initial version.

2. Multipath Labeling methods for Phase

II

In each step these methods augment along all shortest paths simultaneously. Each FAP converted into a chain by reversing orientation of reverse arcs. All these chains put together yield an acyclic network called an Auxiliary network WRT present flow f , AN(f ) = (N(f ), A(f )), a partial subnetwork of residual network G(f ). All lower bounds in AN(f ) are 0, and upper bounds are resid- ual capacities. Also A(f ) = A+(f ) ∪ A−(f ) where:

(i, j) ∈ A+(f ) ⇒ (i, j) ∈ A, fij < kij, and κ (^) ij = capacity in AN(f ) = kij − fij. (i, j) ∈ A−(f ) ⇒ (j, i) ∈ A, fji > ji, and κ (^) ij = capacity in AN(f ) = fji − (^) ji.

These methods find a maximal or blocking flow in AN(f ) and augment f in G using it. We denote flow vectors in AN(f ) by g = (gij).

General multipath labeling method for max-

imum flow

Step 1: Initiate the method with a feasible flow vector f 0 in G.

Step 2: Let f be the current feasible flow vector in G. Construct auxiliary network AN(f ). Two possible outcomes.

  • Construction stops without t joining auxiliary network. Then f is a maximum flow in G. If X = set of all nodes in aux- iliary network, and X¯ its complement; [X, X¯] is a min cut separating s and t. Terminate.
  • t joins the auxiliary network at some stage. Stop construction and go to Step 3.

Step 3: Find a maximal or blocking flow g = (gij) in the aux- iliary network. Different multipath methods use different methods for this.

Step 4: Augmentation: Compute new vector fˆ = ( fˆij) in