Applications of Maximum Flow and Minimum Cut Problems In this handout Transshipment problem Assignment Problem.

Slides:



Advertisements
Similar presentations
Maximum Flow and Minimum Cut Problems In this handout: Duality theory Upper bounds for maximum flow value Minimum Cut Problem Relationship between Maximum.
Advertisements

Outline LP formulation of minimal cost flow problem
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.
Transportation Problem (TP) and Assignment Problem (AP)
An Application of Maximum Flow: The Baseball Elimination Problem
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.
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.
In this handout, Maximum flow problem Minimum cut An application of max flow problem: Baseball Elimination Problem.
Math 308 Discrete Mathematics Discrete Mathematics deals with “Separated” or discrete sets of objects (rather than continuous sets) Processes with a sequence.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
Maximum Flow and Minimum Cut Problems In this handout: Good choices for augmenting paths Duality theory Upper bounds for maximum flow value Minimum Cut.
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.
Max-flow/min-cut theorem Theorem: For each network with one source and one sink, the maximum flow from the source to the destination is equal to the minimal.
Integer programming solutions for graph problems
Introduction to Operations Research
Minimum Cost Flows. 2 The Minimum Cost Flow Problem u ij = capacity of arc (i,j). c ij = unit cost of shipping flow from node i to node j on (i,j). x.
Network Flow How to solve maximal flow and minimal cut problems.
Kramer’s (a.k.a Cramer’s) Rule Component j of x = A -1 b is Form B j by replacing column j of A with b.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
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.
Max Flow – Min Cut Problem. Directed Graph Applications Shortest Path Problem (Shortest path from one point to another) Max Flow problems (Maximum material.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
Maximum Flow Problem (Thanks to Jim Orlin & MIT OCW)
EMIS 8374 Network Flow Models updated 29 January 2008.
Maximum Flow Chapter 26. Flow Concepts Source vertex s – where material is produced Sink vertex t – where material is consumed For all other vertices.
& 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.
15.082J and 6.855J March 4, 2003 Introduction to Maximum Flows.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 25.
Network Flow Problems Example of Network Flow problems:
Chapter 8 Network Models to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
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 Network Flow CSC401 – Analysis of Algorithms Chapter 8 Network Flow Objectives: Flow networks –Flow –Cut Maximum flow –Augmenting path –Maximum flow.
Approximation Algorithms Duality My T. UF.
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)
::Network Optimization:: Minimum Spanning Trees and Clustering Taufik Djatna, Dr.Eng. 1.
Cycle Canceling Algorithm
Maximum Flow Chapter 26.
Maximum Flow Solutions
Network Flow and Connectivity in Wireless Sensor Networks
Introduction to Maximum Flows
Introduction to Maximum Flows
Introduction Basic formulations Applications
Lecture 19-Problem Solving 4 Incremental Method
Network Flows – Multiple sources and sinks
R. Johnsonbaugh Discrete Mathematics 5th edition, 2001
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
Augmenting Path Algorithm
and 6.855J Flow Decomposition
Primal-Dual Algorithm
Successive Shortest Path Algorithm
and 6.855J March 6, 2003 Maximum Flows 2
Network Flows – Minimum capacities
Augmenting Path Algorithm
Introduction to Maximum Flows
Maximum Flow Neil Tang 4/8/2008
Introduction to Maximum Flows
Kramer’s (a.k.a Cramer’s) Rule
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
Network Optimization Models: Maximum Flow Problems
Network Flow Problems – Maximal Flow Problems
EMIS The Maximum Flow Problem: Flows and Cuts Updated 6 March 2008
Presentation transcript:

Applications of Maximum Flow and Minimum Cut Problems In this handout Transshipment problem Assignment Problem

Transshipment Problem Given: Directed network G=(V, E) Supply (source) nodes S i with supply amounts s i, i=1,…,p Demand (sink) nodes D i with demand amounts d i, i=1,…,q Total supply ≥ total demand Capacity function u: E  R Goal: Find a feasible flow through the network which satisfies the total demand (if such a flow exists). Ex.: A D1D1 B C S1S1 D2D2 S2S

Solving the Transshipment Problem via Maximum Flow The transshipment problem can be solved by creating and solving a related instance of maximum flow problem: –Create a supersource O. For each supply node S i, add an arc O  S i with capacity equal to the supply amount of S i. –Create a supersink T. For each demand node D i, add an arc D i  T with capacity equal to the supply amount of D i. –Find the maximum flow from O to T in the resulting auxiliary network. –If maximum flow value = total demand then the current maximum flow is a feasible flow for the transshipment problem, else the transshipment problem is infeasible. A D1D1 B C S1S1 D2D2 S2S O T

Solving the Transshipment Problem via Maximum Flow In our example, –The maximum flow from O to T is obtained by applying the Augmenting Path algorithm. The maximum flow value is 25. The bold red numbers on the arcs show the flow values. –Since the maximum flow value = 25 = 17+8 = total demand, the current maximum flow is a feasible flow for the transshipment problem A D1D1 B C S1S1 D2D2 S2S O T

Assignment Problem Given: n people and n jobs Each person can be assigned to exactly one job Each job should be assigned to exactly one person Person-job compatibility is given by a directed network (e.g., having a link A  x means “person A can do job x ”) Goal: Find an assignment of n jobs to n people (if such an assignment exists). Example: A CB people D E jobs xy zu v

Solving the Assignment Problem via Maximum Flow The assignment problem can be solved by creating and solving a related instance of the transshipment problem: –Each person-node is considered as a supply node with supply amount 1. –Each job-node is considered as a demand node with demand amount 1. –Assign capacity 1 to each arc. –Solve the resulting transshipment problem by finding maximum flow in the auxiliary network. – If maximum flow value = n then the current maximum flow gives a feasible assignment, else the assignment problem is infeasible. A CB people D E jobs xy zu v

Solving the Assignment Problem via Maximum Flow In our example, the red numbers on the arcs show the optimal flow values. Since the maximum flow value is 5, the assignment problem is feasible. The feasible assignment is A  x, B  y, C  u, D  z, E  v. A CB people D E jobs xy zu v O T

Showing the infeasibility of an assignment problem using maximum-flow-based arguments Let’s solve the assignment problem below via maximum flow. The red numbers on the arcs show the optimal flow values. Since the maximum flow value = 5 < 6 = number of jobs, the assignment problem is infeasible. O T A CB people D EF jobs xy zu vw

Showing the infeasibility of an assignment problem using minimum-cut-based arguments The O-side of the minimum cut is {O, A, B, D, x, y, z} (the set of the nodes that are reachable from O via augmenting paths) Return to the original network (delete nodes O and T and the arcs incident to them). O T A CB people D EF jobs xy zu vw

Showing the infeasibility of an assignment problem using minimum-cut-based arguments The capacity of the modified cut is 0 (since there are no arcs going from O-side to T-side). There are 2 people (E, F) and 3 jobs (u, v, w) on T-side. Thus, one of the 3 jobs should be assigned to a person from O-side (A, B, C, D). But there are no arcs going from O-side to T-side. ( A, B, C, D can’t do the jobs u, v, w). Thus, there is no way to assign the T-side jobs, and the assignment problem is infeasible. A CB people D EF jobs xy zu vw