R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 8 Network models.

Slides:



Advertisements
Similar presentations
Orthogonal Drawing Kees Visser. Overview  Introduction  Orthogonal representation  Flow network  Bend optimal drawing.
Advertisements

Edge-connectivity and super edge-connectivity of P 2 -path graphs Camino Balbuena, Daniela Ferrero Discrete Mathematics 269 (2003) 13 – 20.
Introduction to Algorithms
1 Maximum flow sender receiver Capacity constraint Lecture 6: Jan 25.
3/17/2003Tucker, Applied Combinatorics Section 4.2a 1 Network Flows Michael Duquette & Whitney Sherman Tucker, Applied Combinatorics, Section 4.2a, Group.
Introduction To Algorithms CS 445 Discussion Session 8 Instructor: Dr Alon Efrat TA : Pooja Vaswani 04/04/2005.
The Maximum Network Flow Problem. CSE Network Flows.
Chapter 10: Iterative Improvement The Maximum Flow Problem The Design and Analysis of Algorithms.
1 Maximum Flow w s v u t z 3/33/3 1/91/9 1/11/1 3/33/3 4/74/7 4/64/6 3/53/5 1/11/1 3/53/5 2/22/2 
Applied Discrete Mathematics Week 12: Trees
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.
Yangjun Chen 1 Network Flow What is a network? Flow network and flows Ford-Fulkerson method - Residual networks - Augmenting paths - Cuts of flow networks.
Maximum Flows Lecture 4: Jan 19. Network transmission Given a directed graph G A source node s A sink node t Goal: To send as much information from s.
3/24/03Tucker, Section 4.31 Tucker, Applied Combinatorics, Sec. 4.3, prepared by Jo E-M Bipartite GraphMatching Some Definitions X-Matching Maximal Matching.
Linear Programming – Max Flow – Min Cut Orgad Keller.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2004 Lecture 5 Wednesday, 10/6/04 Graph Algorithms: Part 2.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
Hungarian Algorithm Vida Movahedi Elderlab, York University June 2007.
CSE 421 Algorithms Richard Anderson Lecture 24 Network Flow Applications.
Network Flow How to solve maximal flow and minimal cut problems.
Yangjun Chen 1 Network Flow What is a network? Flow network and flows Ford-Fulkerson method - Residual networks - Augmenting paths - Cuts of flow networks.
 Rooted tree and binary tree  Theorem 5.19: A full binary tree with t leaves contains i=t-1 internal vertices.
Maximum Flow Chapter 26. Flow Concepts Source vertex s – where material is produced Sink vertex t – where material is consumed For all other vertices.
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.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Network Analysis Maxflow. What is a Network? Directed connected graph Source node Sink (destination node) Arcs are weighted (costs) Represent a system.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
1 Assignment #3 is posted: Due Thursday Nov. 15 at the beginning of class. Make sure you are also working on your projects. Come see me if you are unsure.
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,
CS 312: Algorithm Design & Analysis Lecture #29: Network Flow and Cuts This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported.
Maximum Flow - Anil Kishore Graph Theory Basics. Prerequisites What is a Graph Directed, Weighted graphs How to traverse a graph using – Depth First Search.
Instructor Neelima Gupta Edited by Divya Gaur(39, MCS '09) Thanks to: Bhavya(9), Deepika(10), Deepika Bisht(11) (MCS '09)
5.6 Prefix codes and optimal tree Definition 31: Codes with this property which the bit string for a letter never occurs as the first part of the bit string.
The Maximum Network Flow Problem
TU/e Algorithms (2IL15) – Lecture 8 1 MAXIMUM FLOW (part II)
Network Flow What is a network? Flow network and flows
The Maximum Network Flow Problem
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
Maximum Flow Chapter 26.
Data Structures and Algorithms (AT70. 02) Comp. Sc. and Inf. Mgmt
BIPARTITE GRAPHS AND ITS APPLICATIONS
Richard Anderson Lecture 23 Network Flow
The Taxi Scheduling Problem
Instructor: Shengyu Zhang
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
CSE Algorithms Max Flow Problems 11/21/02 CSE Max Flow.
Introduction Basic formulations Applications
Lecture 19-Problem Solving 4 Incremental Method
Analysis of Algorithms
Network Flows – Multiple sources and sinks
Richard Anderson Lecture 23 Network Flow
Richard Anderson Lecture 23 Network Flow
R. Johnsonbaugh Discrete Mathematics 5th edition, 2001
Richard Anderson Lecture 21 Network Flow
Problem Solving 4.
Flow Networks General Characteristics Applications
Flow Networks and Bipartite Matching
Algorithms (2IL15) – Lecture 7
EE5900 Advanced Embedded System For Smart Infrastructure
離散數學 DISCRETE and COMBINATORIAL MATHEMATICS
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
Text Book: Introduction to algorithms By C L R S
Lecture 21 Network Flow, Part 1
Richard Anderson Lecture 22 Network Flow
Lecture 21 Network Flow, Part 1
Lecture 22 Network Flow, Part 2
Richard Anderson Lecture 22 Network Flow
Vertex Covers and Matchings
Presentation transcript:

R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 8 Network models

8.1 Introduction A transport network (or simply network) is a simple, weighted, directed graph satisfying 1, 2 and 3: 1. A designated vertex with no incoming edges (the source a) 2. A designated vertex with no outgoing edges (the sink z)

Capacity 3. The number C i,j > 0 assigned to each edge (i,j) is called the capacity of edge (i,j)

Flow  In the diagram, each pair a,b indicates: a = flow b = capacity of the edge (i,j)  Given a network G with capacity C i,j at every edge (i, j)  A flow F i,j is a number assigned to each edge (i,j) such that 0 < F i,j < C i,j  For every vertex i: the incoming flow equals its outgoing flow:  F i,j =  F j,i

Flow at the source and at the sink  Value of the flow is the flow outgoing from the source, which equals the flow coming into the sink: ∑ F a,j = ∑ F j,z j j  Example: In the diagram, F a,b + F a,d = F c,z + F e,z = = 8

Pumping networks (1)  Water for two cities A and B is pumped from three wells w 1, w 2 and w 3  Capacities are shown on the edges

Pumping networks (2) Adding two vertices a and z and their corresponding edges as in the diagram produces an equivalent transport network with supersource a and supersink z.

Computer network Application of flow networks to computer networks: A vertex is a message or switching center An edge represents a channel on which data can be transmitted between vertices The capacity of an edge is the capacity in bps of that channel A flow on an edge is the average number of bps transmitted through the edge

8.2 A maximal flow algorithm If G is a transport network, a maximal flow in G is a flow with maximum value.  The algorithm consists of starting with some initial flow and increase it iteratively until no higher flow is possible.  v 0 = a (source)  v n = z (sink)  Path P = (v 0, v 1,…, v n )  An edge (v i, v i+1 ) is properly oriented if its direction follows the direction of the path.  It is improperly oriented otherwise.

Finding a greater flow (1) Theorem 8.2.3: Let P be a path from a to z in a network G with capacity C and flow F, satisfying the conditions: a) For each properly oriented edge (i,j) in P, F i,j < C i,j b) For each improperly oriented edge (i,j) in P, 0 < F i,j Let X i,j = C i,j – F i,j if (i,j) is properly oriented F i,j if (i,j) is improperly oriented

Finding a greater flow (2)  Let ∆ = minimum {X i,j } i,j= 1,...,n  Define F i,j *= F i,j if (i,j) is not in P F i,j + ∆ if (i,j) is properly oriented in P F i,j - ∆ if (i,j) is improperly oriented in P  Then: F* = {F i,j *} is a flow whose value is F + ∆

8.3 The max flow, min cut theorem  Let G be a network with flow F  Let P = (labeled vertices} and P' = {unlabeled vertices}, source a  P and sink z  P'  Define a cut S = {(v,w) | v  P, w  P'}  Capacity of S is C = ∑ C i,j where (i,j)  S Theorem 8.3.7: Given a cut S, C > F.

Max flow, min cut theorem Theorem (Max flow, min cut theorem): Capacity of the cut S = F if and only if a) F i,j = C i,j for i  P, j  P' or b) F i,j = 0 for i  P' and j  P In this case, flow F is maximal and cut S is minimal

8.4 Matching Example: 4 applicants A, B, C and D apply to five jobs J k, 1 < k < 5.  The edges represent qualification for a job.  A matching consists of finding jobs for qualified persons

Definition of matching  Let G be a directed, bipartite graph with disjoint vertices V and W in which the edges are directed from V to W  A matching for G is a set of edges with no vertices in common.

Maximal and complete matching  A maximal matching for G is a matching E which contains the maximum number of edges  A complete matching for G is a matching E with the property that for every v  V, then (v,w)  E for some w  W.

Matching network  Given a bipartite directed graph G with V and W its disjoint sets of vertices,  Assign to each edge capacity 1.  Add a supersource a and a supersink z.  Add edges of capacity 1 from a to vertices in V and from vertices in W to z  The resulting network is a matching network

Hall's marriage theorem Let G be a directed, bipartite graph with disjoint sets of vertices V and W and with directed edges from V to W.  Let S  V.  Let R(S) = {w  W | v  S and (v, w) is an edge in G}  Then: there exists a complete matching in G if and only if |S| < |R(S)| for all S  V.