Network Flows – Restricted vertices

Slides:



Advertisements
Similar presentations
Maxima and Minima of Functions Maxima and minima of functions occur where there is a change from increasing to decreasing, or vice versa.
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.
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.
EMIS 8374 Vertex Connectivity Updated 20 March 2008.
Network Optimization Models: Maximum Flow Problems
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.
HW2 Solutions. Problem 1 Construct a bipartite graph where, every family represents a vertex in one partition, and table represents a vertex in another.
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.
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.
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.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
Here is an example that involves what is called ‘back flow’ 0 A C B D S T Arrows have already been drawn initially.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
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.
Shortest Path Algorithm This is called “Dijkstra’s Algorithm” …pronounced “Dirk-stra”
and 6.855J The Capacity Scaling Algorithm.
1 Minimum Cost Flows Goal: Minimize costs to meet all demands in a network subject to capacities (combines elements of both shortest path and max flow.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
The diagram below shows water flowing through a pipework system. The values on the edges are the capacities of water that they can carry.
& 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 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.
Flow Networks Ching-Chen Huang Hsi-Yue Hsiao. CONTENTS Network flows on directed acyclic graphs Ford-fulkerson Algorithms -Residual networks.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
1) Find and label the degree of each vertex in the graph.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
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)
Basic Concepts Graphs For more notes and topics visit:
Energy Which question should we study next? How does Energy move?
Maximum Flow Solutions
Network Flows – Labelling procedure
Network Flows – Back flow
Edmonds-Karp Algorithm
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Introduction to Maximum Flows
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.
Augmenting Path Algorithm
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
EE5900 Advanced Embedded System For Smart Infrastructure
Min Global Cut Animation
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
Augmenting Path Algorithm
1 1 Find a maximum Matching ? Women Men.
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.
Lecture 21 Network Flow, Part 1
Question 12.
Introduction to Maximum Flows
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.
Excess Scaling Approach Algorithm
Presentation transcript:

Network Flows – Restricted vertices The diagram below shows water flowing through a pipework system. The values on the edges are the capacities of water that they can carry. Vertex B has a restricted capacity. A maximum of 10 units can flow through this vertex. 4 A C 7 8 3 5 T S 8 10 9 B D 8 10

Network Flows – Restricted vertices To deal with this, we need to redraw the network, with B replaced by new vertices B1 and B2. The arc B1B2 has a capacity of 10. In the original network arcs from vertices S and A go into B, so these arcs must go into the new vertex B1. In the original network arcs go out of B into vertices C and D, so these arcs must come out of the new vertex B2. 4 A C 7 8 3 5 T S 8 10 9 B1 B2 D 10 8

Network Flows – Restricted vertices The labelling procedure can now be applied to this new network in the usual way. Draw in the excess capacities and potential backflows, with an initial flow of zero. 8 4 9 7 10 5 3 8 4 9 7 10 5 3 A C T S B1 B2 D

Network Flows – Restricted vertices To deal with this, we need to redraw the network, with B replaced by new vertices B1 and B2. The arc B1B2 has a capacity of 10. In the original network arcs from vertices S and A go into B, so these arcs must go into the new vertex B1. In the original network arcs go out of B into vertices C and D, so these arcs must come out of the new vertex B2. 4 A C 7 8 3 5 T S 8 10 9 B D 8 10

Network Flows – Restricted vertices Now choose a flow augmenting path. One possible path is SACT. The minimum arrow along this path is 4, and so this the increase in the flow. 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. 8 4 9 7 10 5 3 A C 4 4 3 4 4 T S B1 B2 D

Network Flows – Restricted vertices Now choose a flow augmenting path. One possible path is SACT. Arc AC is now saturated. 8 4 9 7 10 5 3 A C 4 4 3 4 4 T S B1 B2 D

Network Flows – Restricted vertices Now choose another flow augmenting path. One possible path is SB1B2DT. The minimum arrow along this path is 8, and so this 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. 8 4 9 7 10 5 3 A C 4 4 3 4 4 T S 8 8 2 8 8 1 B1 B2 D 2

Network Flows – Restricted vertices Now choose another flow augmenting path. One possible path is SB1B2DT. Arc B2D is now saturated. 8 4 9 7 10 5 3 A C 4 4 3 4 4 T S 8 8 2 8 8 1 B1 B2 D 2

Network Flows – Restricted vertices Now choose another flow augmenting path. One possible path is SAB1B2CT. The minimum arrow along this path is 2, and so this the increase in the flow. We decrease all the arrows in the direction of this path by 2, and increase all the arrows against the direction of this path by 2. 8 4 9 7 10 5 3 A C 2 4 4 3 1 6 4 4 6 T S 2 3 1 2 8 8 2 8 10 8 1 B1 B2 D 2

Network Flows – Restricted vertices Now choose another flow augmenting path. One possible path is SAB1B2CT. Arc B1B2 is now saturated. 8 4 9 7 10 5 3 A C 2 4 4 3 1 6 4 4 6 T S 2 3 1 2 8 8 2 8 10 8 1 B1 B2 D 2

Network Flows – Restricted vertices Since arc AC and arc B1B2 are both now saturated, S and T are disconnected and so we have the maximum flow. We can write the final flows on the diagram. The total flow is 14. 8 4 9 7 10 5 3 4 6 A C 2 4 4 3 1 6 4 6 4 6 T S 2 3 1 2 2 8 8 2 2 8 10 8 1 8 8 B1 B2 D 2 8 10

Network Flows – Restricted vertices We can now go back to the original diagram, and write on the final flows. 4 4 6 A C 7 8 6 3 5 T S 8 2 2 10 9 8 8 B D 8 10 8