8 4 9 7 10 8 8 5 3 The diagram below shows water flowing through a pipework system. The values on the edges are the capacities of water that they can carry.

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.
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.
Module 5 – Networks and Decision Mathematics Chapter 24 – Directed Graphs.
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.
CS 4407, Algorithms University College Cork, Gregory M. Provan Network Optimization Models: Maximum Flow Problems In this handout: The problem statement.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
& 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)
Maxima and Minima of Functions
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
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 15 Graph Theory © 2008 Pearson Addison-Wesley.
Network Flow CSE 373 Data Structures.
EE5900 Advanced Embedded System For Smart Infrastructure
Network Flows – Restricted vertices
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.
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
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:

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

S Network Flows – Restricted vertices 10 AC D T B1B1B1B1 B2B2B2B2 To deal with this, we need to redraw the network, with B replaced by new vertices B 1 and B 2. The arc B 1 B 2 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 B 1. In the original network arcs go out of B into vertices C and D, so these arcs must come out of the new vertex B 2.

The labelling procedure can now be applied to this new network in the usual way. S Network Flows – Restricted vertices AC D T B1B1B1B1 B2B2B2B2 Draw in the excess capacities and potential backflows, with an initial flow of zero

S To deal with this, we need to redraw the network, with B replaced by new vertices B 1 and B 2. The arc B 1 B 2 has a capacity of 10. Network Flows – Restricted vertices 10 AC D T B In the original network arcs from vertices S and A go into B, so these arcs must go into the new vertex B 1. In the original network arcs go out of B into vertices C and D, so these arcs must come out of the new vertex B 2.

Now choose a flow augmenting path. One possible path is SACT. Now choose a flow augmenting path. One possible path is SACT. S Network Flows – Restricted vertices AC D T B1B1B1B1 B2B2B2B 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. 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

Now choose a flow augmenting path. One possible path is SACT. Now choose a flow augmenting path. One possible path is SACT. S Network Flows – Restricted vertices AC D T B1B1B1B1 B2B2B2B Arc AC is now saturated

Now choose another flow augmenting path. One possible path is SB 1 B 2 DT. Now choose another flow augmenting path. One possible path is SB 1 B 2 DT. S Network Flows – Restricted vertices AC D T B1B1B1B1 B2B2B2B 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. 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

Now choose another flow augmenting path. One possible path is SB 1 B 2 DT. Now choose another flow augmenting path. One possible path is SB 1 B 2 DT. S Network Flows – Restricted vertices AC D T B1B1B1B1 B2B2B2B Arc B 2 D is now saturated

Now choose another flow augmenting path. One possible path is SAB 1 B 2 CT. Now choose another flow augmenting path. One possible path is SAB 1 B 2 CT. S Network Flows – Restricted vertices AC D T B1B1B1B1 B2B2B2B 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. 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

Now choose another flow augmenting path. One possible path is SAB 1 B 2 CT. Now choose another flow augmenting path. One possible path is SAB 1 B 2 CT. S Network Flows – Restricted vertices AC D T B1B1B1B1 B2B2B2B Arc B 1 B 2 is now saturated

Since arc AC and arc B 1 B 2 are both now saturated, S and T are disconnected and so we have the maximum flow. S Network Flows – Restricted vertices AC D T B1B1B1B1 B2B2B2B We can write the final flows on the diagram. The total flow is 14. We can write the final flows on the diagram. The total flow is

We can now go back to the original diagram, and write on the final flows. S Network Flows – Restricted vertices 10 AC D T B