Linear Programming – Max Flow – Min Cut Orgad Keller.

Slides:



Advertisements
Similar presentations
3.4 Linear Programming 10/31/2008. Optimization: finding the solution that is either a minimum or maximum.
Advertisements

1 LP, extended maxflow, TRW OR: How to understand Vladimirs most recent work Ramin Zabih Cornell University.
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,
Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
Approximation Algorithms
ECE Longest Path dual 1 ECE 665 Spring 2005 ECE 665 Spring 2005 Computer Algorithms with Applications to VLSI CAD Linear Programming Duality – Longest.
Linear Programming (LP) (Chap.29)
C&O 355 Mathematical Programming Fall 2010 Lecture 22 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A.
Totally Unimodular Matrices
Introduction to Algorithms
1 Introduction to Linear Programming. 2 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. X1X2X3X4X1X2X3X4.
Management Science 461 Lecture 6 – Network Flow Problems October 21, 2008.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 8 Network models.
CSCI 3160 Design and Analysis of Algorithms Tutorial 6 Fei Chen.
Linear Programming and Approximation
Totally Unimodular Matrices Lecture 11: Feb 23 Simplex Algorithm Elliposid Algorithm.
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.
Duality Lecture 10: Feb 9. Min-Max theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum Cut Both.
Duality Dual problem Duality Theorem Complementary Slackness
Approximation Algorithms
Computer Algorithms Integer Programming ECE 665 Professor Maciej Ciesielski By DFG.
What is Linear Programming? A Linear Program is a minimization or maximization problem, subject to several restraints. Linear programs can be set up for.
ECE LP Duality 1 ECE 665 Spring 2005 ECE 665 Spring 2005 Computer Algorithms with Applications to VLSI CAD Linear Programming Duality.
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
1 Linear Programming:Duality theory. Duality Theory The theory of duality is a very elegant and important concept within the field of operations research.
Duality Theory 對偶理論.
CSE 421 Algorithms Richard Anderson Lecture 24 Network Flow Applications.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Linear Programming Data Structures and Algorithms A.G. Malamos References: Algorithms, 2006, S. Dasgupta, C. H. Papadimitriou, and U. V. Vazirani Introduction.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
Duality Theory  Every LP problem (called the ‘Primal’) has associated with another problem called the ‘Dual’.  The ‘Dual’ problem is an LP defined directly.
C&O 355 Mathematical Programming Fall 2010 Lecture 18 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A.
TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A A A A A A Image:
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.
Updated 21 April2008 Linear Programs with Totally Unimodular Matrices.
3.4: Linear Programming Objectives: Students will be able to… Use linear inequalities to optimize the value of some quantity To solve linear programming.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
CPSC 536N Sparse Approximations Winter 2013 Lecture 1 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAA.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Optimization - Lecture 5, Part 1 M. Pawan Kumar Slides available online
C&O 355 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
Approximation Algorithms Duality My T. UF.
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.
Approximation Algorithms based on linear programming.
Part 3 Linear Programming 3.3 Theoretical Analysis.
Polyhedral Optimization Lecture 2 – Part 2 M. Pawan Kumar Slides available online
Lap Chi Lau we will only use slides 4 to 19
Topics in Algorithms Lap Chi Lau.
6.5 Stochastic Prog. and Benders’ decomposition
Richard Anderson Lecture 23 Network Flow
Lecture 22 Network Flow, Part 2
CSCI 3160 Design and Analysis of Algorithms Tutorial 8
The Simplex Method: Standard Minimization Problems
Analysis of Algorithms
Vertex Covers, Matchings, and Independent Sets
Linear Programming Duality, Reductions, and Bipartite Matching
Problem Solving 4.
EE5900 Advanced Embedded System For Smart Infrastructure
Flow Feasibility Problems
Advanced LP models column generation.
Lecture 19 Linear Program
6.5 Stochastic Prog. and Benders’ decomposition
Lecture 22 Network Flow, Part 2
Chapter 1. Formulations.
Kramer’s (a.k.a Cramer’s) Rule
Maximum Flow Problems in 2005.
“Easy” Integer Programming Problems: Network Flow Problems
Presentation transcript:

Linear Programming – Max Flow – Min Cut Orgad Keller

Orgad Keller - Algorithms 2 2 We have an objective function: Subject to constraints: Linear Programming

Orgad Keller - Algorithms Given all parameters we want to find the optimal Linear Programming

Orgad Keller - Algorithms It is easier to present the problem with a matrix and vectors: Linear Programming

Orgad Keller - Algorithms Given the Primal Problem: It’s Dual Problem is defined as: The Dual Problem

Orgad Keller - Algorithms Given a problem and it’s dual problem, then: In other words, the optimal objective function’s value for the primal problem, is equal to the optimal objective function’s value for the dual problem. Strong Duality Theorem

Orgad Keller - Algorithms As you remember from Algorithms I Given a directed graph, two vertices and a capacity for each edge We want to find a flow function so that the flow value is maximal Maximum Flow

Orgad Keller - Algorithms But, we are subject to some rules:   What goes in must come out:  Capacity restrictions: Maximum Flow

Orgad Keller - Algorithms We’ll show by a simple example: Max Flow with Linear Programming

Orgad Keller - Algorithms We want to present the example in the form:  Subject to: Max Flow with Linear Programming

Orgad Keller - Algorithms Formally: Max Flow with Linear Programming But we don’t permit equalities

Orgad Keller - Algorithms  So we’ll add another edge, and change the problem’s representation a little. Max Flow with Linear Programming ∞

Orgad Keller - Algorithms

Orgad Keller - Algorithms

Orgad Keller - Algorithms As you remember from Algorithms I Given a directed graph, two vertices and a weight for each edge We want to find a minimal-weight subset of edges such that if we’ll remove them, we won’t be able to travel from to. Minimum Cut

Orgad Keller - Algorithms In other words:  We’ll choose, where:,, such that the cut value, is minimal. Minimum Cut

Orgad Keller - Algorithms Going back to the example: Min Cut with Linear Programming

Orgad Keller - Algorithms Min Cut with Linear Programming What about:  Is that enough?  We haven’t ensured paths from to are cut. This look like And we know that

Orgad Keller - Algorithms Min Cut with Linear Programming Beside a variable for every edge, we’ll want a variable for every vertex, such that:

Orgad Keller - Algorithms Min Cut with Linear Programming Let’s take for instance:  If is in the cut, that means that  If is not in the cut, that means that either or or  So it is the same to constrain:

Orgad Keller - Algorithms Formally: Max Flow with Linear Programming In order to ensure

Orgad Keller - Algorithms

Orgad Keller - Algorithms

Orgad Keller - Algorithms

Orgad Keller - Algorithms We now see that the problems are dual So also according to the Strong Duality Theorem, Max Flow = Min Cut Max Flow – Min Cut Theorem

Orgad Keller - Algorithms We want integer values for the variables, but this is LP, not IP! So how do we know that the solution will yield integer values for the variables? Theroem: If the constraints matrix is totally unimodular and the right hand side is comprised of integers, then it’s easy to find an integer solution. Integer Values

Orgad Keller - Algorithms Definition: A Unimodular matrix is a square matrix whose determinant is 0, 1 or -1. Definition: A Totally Unimodular matrix is a matrix whose every non-singular square submatrix is unimodular. Unimodular / Totally Unimodular