Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.

Slides:



Advertisements
Similar presentations
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
Advertisements

Max Flow Problem Given network N=(V,A), two nodes s,t of V, and capacities on the arcs: uij is the capacity on arc (i,j). Find non-negative flow fij for.
Chapter 6 Maximum Flow Problems Flows and Cuts Augmenting Path Algorithm.
Network Optimization Models: Maximum Flow Problems
MAXIMUM FLOW Max-Flow Min-Cut Theorem (Ford Fukerson’s Algorithm)
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
1 Maximum Flow Networks Suppose G = (V, E) is a directed network. Each edge (i,j) in E has an associated ‘capacity’ u ij. Goal: Determine the maximum amount.
The Out of Kilter Algorithm in Introduction The out of kilter algorithm is an example of a primal-dual algorithm. It works on both the primal.
Applications of Maximum Flow and Minimum Cut Problems In this handout Transshipment problem Assignment Problem.
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
3 t s the black numbers next to an arc is its capacity.
NetworkModel-1 Network Optimization Models. NetworkModel-2 Network Terminology A network consists of a set of nodes and arcs. The arcs may have some flow.
and 6.855J The Capacity Scaling Algorithm.
CS 4407, Algorithms University College Cork, Gregory M. Provan Network Optimization Models: Maximum Flow Problems In this handout: The problem statement.
Max Flow – Min Cut Problem. Directed Graph Applications Shortest Path Problem (Shortest path from one point to another) Max Flow problems (Maximum material.
Maximum Flow Problem (Thanks to Jim Orlin & MIT OCW)
& 6.855J & ESD.78J Algorithm Visualization The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem.
The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem Thanks to Jim Orlin & MIT OCW.
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem.
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
15.082J and 6.855J March 4, 2003 Introduction to Maximum Flows.
15.082J and 6.855J and ESD.78J The Successive Shortest Path Algorithm and the Capacity Scaling Algorithm for the Minimum Cost Flow Problem.
and 6.855J March 6, 2003 Maximum Flows 2. 2 Network Reliability u Communication Network u What is the maximum number of arc disjoint paths from.
EMIS 8374 The Ford-Fulkerson Algorithm (aka the labeling algorithm) Updated 4 March 2008.
Approximation Algorithms Duality My T. UF.
Tuesday, March 19 The Network Simplex Method for Solving the Minimum Cost Flow Problem Handouts: Lecture Notes Warning: there is a lot to the network.
Cycle Canceling Algorithm
Network Simplex Animations
EMIS 8374 Node Splitting updated 27 January 2004
Network Flows – Back flow
Network Flow 2016/04/12.
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Solving maximum flows on distribution networks:
Introduction to Maximum Flows
Introduction to Maximum Flows
Introduction Basic formulations Applications
3.4 Push-Relabel(Preflow-Push) Maximum Flow Alg.
Analysis of Algorithms
Vertex Covers, Matchings, and Independent Sets
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
Augmenting Path Algorithm
Primal-Dual Algorithm
Complexity of Ford-Fulkerson
Max Flow Problem Given network N=(V,A), two nodes s,t of V, and capacities on the arcs: uij is the capacity on arc (i,j). Find non-negative flow fij for.
Successive Shortest Path Algorithm
Successive Shortest Path Algorithm
EE5900 Advanced Embedded System For Smart Infrastructure
and 6.855J March 6, 2003 Maximum Flows 2
Flow Feasibility Problems
Min Global Cut Animation
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
The Ford-Fulkerson Algorithm
Augmenting Path Algorithm
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem Obtain a network, and use the same network to illustrate the.
Introduction to Maximum Flows
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem Obtain a network, and use the same network to illustrate the.
Maximum Flow Neil Tang 4/8/2008
Introduction to Minimum Cost Flows
Introduction to Maximum Flows
Network Optimization Models: Maximum Flow Problems
Max Flows 3 Preflow-Push Algorithms
Maximum Flow Problems in 2005.
Class 11 Max Flows Obtain a network, and use the same network to illustrate the shortest path problem for communication networks, the max flow.
Vertex Covers and Matchings
EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008
EMIS The Maximum Flow Problem: Flows and Cuts Updated 6 March 2008
The Residual Network Given a flow x, the residual capacity rij of arc (i, j) is the maximum additional flow that can be sent from i to j using arcs (i,
Excess Scaling Approach Algorithm
Presentation transcript:

EMIS 8374 Solving Max Flow Problems with Non-Zero Lower Bounds Updated 18 March 2008

Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t

Example Max Flow Problem (, u) (0,2) 2 4 (0,5) (0,4) 1 6 (3,6) (5,6) t s (0,5) (0,6) 3 5 (0,7) (7,8)

Step 1: Convert to Circulation Problem (0,2) 2 4 (0,5) (0,4) 1 6 (3,6) (5,6) (0,5) (0,6) 3 5 (0,7) (7,8) (0,)

Preflow Satisfies capacity constraints Does not have to satisfy node-balance constraints

Step 2: Put a Preflow of pij = ij on (i, j) 2 4 1 6 3 5 3 5 7

Step 3: Calculate excess e(i) for each i (3+0) – (0+0) = 3 (0+0) – 5 = -5 2 4 1 6 3 5 3 5 7 (5+0) – (0+7) = -2 7 – (0+3) = 4

Network with preflow and excess 3 -5 2 4 1 6 3 5 3 5 7 4 -2

Step 4: Let u'ij = uij - pij for each arc and remove preflow 3 -5 (0,2) 2 4 (0,5) (0,4) 1 6 (0,3) (0,1) (0,5) (0,6) 3 5 (0,7) (0,1) 4 -2 (0,)

Step 5: Add s' and t' t' s' 2 4 1 6 3 5 (0,3) (0,5) (0,2) (0,2) (0,4) (0,1) (0,5) (0,6) 3 5 (0,7) (0,1) (0,)

Max s'-t' Flow Problem If e(j) < 0 then let cs'j = -e(j) If e(i) > 0 then let cit' = e(i) Let x be a maximum s'-t' flow. If this flow saturates the source- and sink-adjacent arcs, then it can be added to the preflow to create a feasible flow in the original network. Otherwise, the original problem is infeasible.

Max s'-t' Flow Problem Suppose that the max flow x saturates arc (s',4): The flow x is balanced at all nodes. xs'j = 5 = -e(4). If we then remove s' and (s',4), node 4 will become unbalanced. It will send out 5 more units than it takes in. Adding back the preflow p54 = 5 will rebalance node 4 .

Max s'-t' Flow Problem Suppose that the max flow x saturates arc (2, t'): The flow x is balanced at all nodes. xt'j = 3 = e(2). If we then remove t' and (2, t'), node 2 will become unbalanced. It will receive 3 more units than it sends out. Adding back the preflow p23 = 3 will rebalance the node.

Step 6: Find Max s'-t' Flow x (3,3) (x, u) (5,5) s' (2,2) 2 4 (2,2) (4,4) (3,4) (1,5) 1 6 (0,3) (0,1) (0,5) (4,6) 3 5 (2,7) (0,1) (5,)

Step 7: Remove s' and t' 2 4 1 6 3 5 (x, u) (2,2) (3,4) (1,5) (0,3) (0,1) (0,5) (4,6) 3 5 (2,7) (0,1) (5,)

Original Network with Flow x (0+0) – (1+2) = -3 (2+3) – 0 = 5 2 2 4 3 1 1 6 5 4 3 5 2 (2+0) – (0+0) = 2 0 – (4+0) = -4

Step 8: Balance the Flow by Adding Preflow p 2 2 4 3 1 1 6 0+3=3 0+5=5 5 4 3 5 2 0+7=7

Step 9: Remove Arc from t to s We now have a feasible flow (v = 5) for the original problem. (, x + p, u) (0,2,2) 2 4 (0,1,5) (0,3,4) 1 6 s (3,3,6) t (5,5,6) (0,0,5) (0,4,6) 3 5 (0,2,7) (7,7,8)

Step 10: Construct the Residual Network 2 2 4 1 4 3 t 1 6 s 3 1 5 2 2 3 5 5 4 1

Step 11: Use Augmenting Path Algorithm to Find the Max Flow 2 2 4 1 4 3 t 1 6 s 3 1 5 2 2 3 5 5 4 1

Augmenting Path in the Residual Network 5 2 2 4 1 3 1 t 1 6 s 3 1 4 2 1 6 3 5 4 1

Residual Network 5 2 2 4 4 1 t 1 6 s 3 1 4 1 1 6 3 5 6 1

Maximum Flow 2 4 1 6 3 5 (, x + p, u) v = 10 (0,2,2) (0,5,5) (0,4,4) s (0,4,5) (3,3,6) t (5,6,6) (0,5,6) 3 5 (0,6,7) (7,8,8)

Example 2 2 (3,5) (, u) 1 s (0,2) 3 t

Example 2: Circulation & Preflow -3 2 2 (3,5) 3 3 1 (0,2) 1 3 (0,) 3

Example 2: Max s'-t' Flow Prob. (0,3) t' 2 (0,2) (0,3) 1 (, u) (0,2) 3 (0,)

Example 2: Max s'-t' Flow s' t' 2 1 3 (2,3) (x, u) (0,2) Source and sink arcs not saturated. Problem is infeasible. (2,3) 1 (2,2) 3 (2,)