Modelling with Max Flow 1. 2 The Max Flow Problem.

Slides:



Advertisements
Similar presentations
Lecture 7. Network Flows We consider a network with directed edges. Every edge has a capacity. If there is an edge from i to j, there is an edge from.
Advertisements

Algorithm Design Methods Spring 2007 CSE, POSTECH.
Max Flow Min Cut. Theorem The maximum value of an st-flow in a digraph equals the minimum capacity of an st-cut. Theorem If every arc has integer capacity,
1 Optimization Spring Some practical remarks Lecturers: Kristoffer Arnsfelt Hansen and Peter Bro Miltersen. Homepage:
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.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
EMIS 8374 Vertex Connectivity Updated 20 March 2008.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 8 Network models.
Piyush Kumar (Lecture 6: MaxFlow MinCut Applications)
Prof. Swarat Chaudhuri COMP 482: Design and Analysis of Algorithms Spring 2012 Lecture 19.
The Maximum Network Flow Problem. CSE Network Flows.
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.
1 The Max Flow Problem. 2 Flow networks Flow networks are the problem instances of the max flow problem. A flow network is given by 1) a directed graph.
Optimal solution of binary problems Much material taken from :  Olga Veksler, University of Western Ontario
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
CS138A Maximum Bipartite Matching Peter Schröder.
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 Optimization Spring 2007 (Third Quarter). 2 Some practical remarks Homepage: Exam: Written, 3 hours. There.
The max flow problem
Computer Algorithms Integer Programming ECE 665 Professor Maciej Ciesielski By DFG.
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.
Linear Programming – Max Flow – Min Cut Orgad Keller.
1 The Min Cost Flow Problem. 2 Flow Networks with Costs Flow networks with costs are the problem instances of the min cost flow problem. A flow network.
1 Ford-Fulkerson method Ford-Fulkerson(G) f = 0 while( 9 simple path p from s to t in G f ) f := f + f p output f Runs in time O(|f max | |E|) where f.
1 The Min Cost Flow Problem. 2 The Min Cost Flow problem We want to talk about multi-source, multi-sink flows than just “flows from s to t”. We want to.
Section 2.9 Maximum Flow Problems Minimum Cost Network Flows Shortest Path Problems.
Advanced Algorithms Piyush Kumar (Lecture 4: MaxFlow MinCut Applications) Welcome to COT5405.
CS774. Markov Random Field : Theory and Application Lecture 13 Kyomin Jung KAIST Oct
CSE 421 Algorithms Richard Anderson Lecture 24 Network Flow Applications.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
Network Flow. Network flow formulation A network G = (V, E). Capacity c(u, v)  0 for edge (u, v). Assume c(u, v) = 0 if (u, v)  E. Source s and sink.
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.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Exercise 6.1 Find the number of different shortest paths from point A to point B in a city with perfectly horizontal streets and vertical avenues as shown.
CSEP 521 Applied Algorithms Richard Anderson Lecture 8 Network Flow.
Problems in Combinatorial Optimization. Linear Programming.
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.
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
Max-flow, Min-cut Network flow.
The assignment problem
Richard Anderson Lecture 23 Network Flow
Maximum Flow 9/13/2018 6:12 PM Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015.
Lecture 22 Network Flow, Part 2
CSCI 3160 Design and Analysis of Algorithms Tutorial 8
Max-flow, Min-cut Network flow.
Network Flow 2016/04/12.
Instructor: Shengyu Zhang
Edmonds-Karp Algorithm
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
Introduction to Maximum Flows
R. Johnsonbaugh Discrete Mathematics 5th edition, 2001
Vertex Covers, Matchings, and Independent Sets
Richard Anderson Lecture 21 Network Flow
Max Flow Application: Precedence Relations
Max Flow Min Cut, Bipartite Matching Yin Tat Lee
Flow Networks and Bipartite Matching
Network Flow CSE 373 Data Structures.
EE5900 Advanced Embedded System For Smart Infrastructure
Max Flow / Min Cut.
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 Neil Tang 4/8/2008
Richard Anderson Lecture 23 Network Flow Applications
1.6 Linear Programming Pg. 30.
Lecture 22 Network Flow, Part 2
Maximum Flow Problems in 2005.
Vertex Covers and Matchings
EMIS The Maximum Flow Problem: Flows and Cuts Updated 6 March 2008
Presentation transcript:

Modelling with Max Flow 1

2 The Max Flow Problem

3 Modeling with Max Flow: A scheduling problem A set of jobs must be scheduled on M identical machines. Each job j has an release (arrival) date r j, a required due date d j and a processing time p j · d j - r j. A job can be preemptively moved from one machine to another. Can the jobs be scheduled on the machines so that the deadlines are met?

4 M = 3

5

Basic property of model Feasible (”legal”) schedules correspond to flows that saturate all outgoing arcs of s. ”correspond to” = time spent on a particular job on a particular set of dates can be read off from flow along arcs in middle layer. 6

7 Integrality Theorem (26.11) If a flow network has integer valued capacities, there is a maximum flow with an integer value on every edge. The Ford- Fulkerson method will yield such a maximum flow. The integrality theorem is often extremely important when “programming” and modeling using the max flow formalism.

8 Reduction: Maximum Matching ! Max Flow What is the maximum cardinality matching in G?

9 G

10 G’ G’ st All capacities are 1

Relating G and G’ Matchings in G correspond exactly to integral flows of G’ Correspondence: –Arcs with a flow of 1 correspond to edges in the matching. –Arcs with a flow of 0 correspond to non-edges A max flow which is integral correspond to a maximum matching 11

12 Integrality essential

13 Finding a balanced set of Representatives A city has clubs C 1, C 2,…,C n and parties P 1, P 2,…,P m. A citizen may be a member of several clubs but may only be a member of one party. A balanced city council must be formed by including exactly one member from each club and at most u k members from party P k. (Ahuja, Application 6.2)

14

15 Max Flow – Min Cut Theorem The value of the maximum flow in G is equal to the capacity of the minimum cut in G.

16 Processes p 1, p 2, …, p n must be assigned to one of two processors. Assigning p i to processor k gives computation cost a ik. If p i and p k are assigned to different processors, communication cost c ik is incurred. Minimize the total cost. Distributed Computation on Two- Processor Computer (Ahuja, Application 6.5)

17

… but there is a lot of power of in modeling with directed cuts 18

19

20 Find a subset of regions to mine so that the total profit is maximized.

When solving exam problems… Flow networks is a graphical formalism. This does not mean that a sloppy drawing is sufficient to specify a model. …. remember that max flow networks are directed graphs. ….. remember that arcs in a max flow network have capacities that much be specified. 21