Network Flows – Labelling procedure

Slides:



Advertisements
Similar presentations
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.
Advertisements

3/17/2003Tucker, Applied Combinatorics Section 4.2a 1 Network Flows Michael Duquette & Whitney Sherman Tucker, Applied Combinatorics, Section 4.2a, Group.
Bioinformatics III1 We will present an algorithm that originated by Ford and Fulkerson (1962). Idea: increase the flow in a network iteratively until it.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 8 Network models.
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.
Chapter 10: Iterative Improvement The Maximum Flow Problem The Design and Analysis of Algorithms.
4/5/05Tucker, Sec Applied Combinatorics, 4rth Ed. Alan Tucker Section 4.3 Graph Models Prepared by Jo Ellis-Monaghan.
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.
Nick McKeown Spring 2012 Maximum Matching Algorithms EE384x Packet Switch Architectures.
CSC 2300 Data Structures & Algorithms April 17, 2007 Chapter 9. Graph Algorithms.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
Section 4.2 Network Flows By Christina Touhey. The flow out of a equals the flow into z. Algorithm 1.Make vertex a: (0, ). 2.Scan the first vertex and.
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.
A network is shown, with a flow f. v u 6,2 2,2 4,1 5,3 2,1 3,2 5,1 4,1 3,3 Is f a maximum flow? (a) Yes (b) No (c) I have absolutely no idea a b c d.
Network Flow & Linear Programming Jeff Edmonds York University Adapted from NetworkFlow.ppt.
A B C D The diagram below shows water flowing through a pipework system. The values on the edges are the capacities of water that they.
Here is an example that involves what is called ‘back flow’ 0 A C B D S T Arrows have already been drawn initially.
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.
Module 5 – Networks and Decision Mathematics Chapter 24 – Directed Graphs.
Advanced Algorithms Piyush Kumar (Lecture 5: Preflow Push) Welcome to COT5405.
Network Flow How to solve maximal flow and minimal cut problems.
CS 4407, Algorithms University College Cork, Gregory M. Provan Network Optimization Models: Maximum Flow Problems In this handout: The problem statement.
10. Lecture WS 2006/07Bioinformatics III1 V10: Network Flows V10 follows closely chapter 12.1 in on „Flows and Cuts in Networks and Chapter 12.2 on “Solving.
1 WEEK 11 Graphs III Network Flow Problems A Simple Maximum-Flow Algorithm Izmir University of Economics.
The diagram below shows water flowing through a pipework system. The values on the edges are the capacities of water that they can carry.
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.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
A directed graph G consists of a set V of vertices and a set E of arcs where each arc in E is associated with an ordered pair of vertices from V. V={0,
Network Problems A D O B T E C
ENGM 631 Maximum Flow Solutions. Maximum Flow Models (Flow, Capacity) (0,3) (2,2) (5,7) (0,8) (3,6) (6,8) (3,3) (4,4) (4,10)
UNIT II Scheduling Procedures & Techniques FLOAT
Network Flow.
Network Flow.
Maximum Flow Solutions
CMSC 341 Lecture 24 Max Flow Prof. Neary
Network Flows – Back flow
Network Flow 2016/04/12.
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
MATS Quantitative Methods Dr Huw Owens
3.4 Push-Relabel(Preflow-Push) Maximum Flow Alg.
Network Flows – Multiple sources and sinks
Richard Anderson Lecture 21 Network Flow
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
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.
Network Flow CSE 373 Data Structures.
EE5900 Advanced Embedded System For Smart Infrastructure
Network Flows – Restricted vertices
Min Global Cut Animation
Network Flow.
Lecture 21 Network Flow, Part 1
Network Flows – Minimum capacities
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
The Ford-Fulkerson Algorithm
1 1 Find a maximum Matching ? Women Men.
Piyush Kumar (Lecture 3: Preflow Push)
Network Flow.
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
Richard Anderson Lecture 22 Network Flow
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.
EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008
EMIS The Maximum Flow Problem: Flows and Cuts Updated 6 March 2008
Excess Scaling Approach Algorithm
Presentation transcript:

Network Flows – Labelling procedure The diagram below shows water flowing through a pipework system. The values on the edges are the capacities of water that they can carry. We can find the maximum flow through these pipes using the labelling procedure. 4 A C 7 8 3 5 S 8 T 10 9 B D 8

Network Flows – Labelling procedure Each edge will be labelled with two arrows. The forward arrow will indicate the amount of excess capacity – the potential increase. The backward arrow will indicate the current flow - the potential decrease. Initially the excess capacities are the full capacity and the flows are all zero. At each stage we try to find a path from S to T that consists of non-zero arrows. Initially there are there are many such flow augmenting paths. One example is SACT. The minimum arrow along this path is 4, and so this is the increase in the flow. 8 4 9 7 10 5 3 A C S T B D

Network Flows – Labelling procedure We decrease all the arrows in the direction of this path by 4, and increase all the arrows against the direction of this path by 4. Notice that AC is now saturated, so this arc cannot be used in any further flow augmenting paths. 4 A C 4 4 8 7 3 4 5 8 4 3 S T 9 10 8 B D

Network Flows – Labelling procedure Now we choose another flow augmenting path. One example is SABCT. The minimum arrow along this path is 3, and so this the increase in the flow. We decrease all the arrows in the direction of this path by 3, and increase all the arrows against the direction of this path by 3. 4 A C 4 1 4 8 7 3 4 2 5 7 8 4 3 7 S 3 T 3 9 10 8 B D

Network Flows – Labelling procedure Now we choose another flow augmenting path. One example is SABCT. Arcs AB and CT are now saturated. 4 A C 4 1 4 8 7 3 4 2 5 7 8 4 3 7 S 3 T 3 9 10 8 B D

Network Flows – Labelling procedure For our next flow augmenting path let’s choose SBDT. The minimum arrow along this path is 8, and so this is the increase in the flow. We decrease all the arrows in the direction of this path by 8, and increase all the arrows against the direction of this path by 8. 4 A C 4 1 4 8 7 3 4 2 5 7 8 4 3 7 S 3 T 1 3 9 2 10 8 8 8 B D 8

Network Flows – Labelling procedure For our next flow augmenting path let’s choose SBDT. Arc BD is now saturated. 4 A C 4 1 4 8 7 3 4 2 5 7 8 4 3 7 S 3 T 1 3 9 2 10 8 8 8 B D 8

Network Flows – Labelling procedure Are there any more flow augmenting paths? Remember we are looking for paths following non-zero arrows from S to T. Yes, there is the path SBCDT, with minimum arrow 1, so we can increase the flow by 1. We decrease all the arrows in the direction of this path by 1, and increase all the arrows against the direction of this path by 1. 4 A C 4 1 4 8 7 3 4 1 2 5 7 7 8 4 3 7 S 3 T 1 3 9 1 1 4 2 10 8 9 8 8 9 B D 8

Network Flows – Labelling procedure Are there any more flow augmenting paths? Remember we are looking for paths following non-zero arrows from S to T. Arc SB is now saturated. 4 A C 4 1 4 8 7 3 4 1 2 5 7 7 8 4 3 7 S 3 T 1 3 9 1 1 4 2 10 8 9 8 8 9 B D 8

Network Flows – Labelling procedure We now have a flow of 16 out of the source (backwards arrows) and into the sink. Since SB, AB, AC, BD and CT are all saturated, S and T are disconnected (there is no path from S to T using unsaturated arcs), so this is the maximum flow. We can write the final flows on the diagram. We read them off the backward arrows on each edge. 4 4 7 A C 7 4 1 4 8 7 3 3 4 1 2 5 7 7 8 4 3 7 S 1 3 T 1 3 9 1 1 3 4 2 10 8 9 9 8 8 8 9 9 B D 8