Linear Programming Max Flow Min Cut - PowerPoint PPT Presentation

1 / 27
About This Presentation
Title:

Linear Programming Max Flow Min Cut

Description:

So we'll add another edge, and change the problem's representation a little. ... of edges such that if we'll remove them, we won't be able to travel from to. ... – PowerPoint PPT presentation

Number of Views:131
Avg rating:3.0/5.0
Slides: 28
Provided by: uCsB7
Category:
Tags: able | add | another | cut | flow | linear | max | min | programming | to

less

Transcript and Presenter's Notes

Title: Linear Programming Max Flow Min Cut


1
Linear Programming Max Flow Min Cut
  • Orgad Keller
  • Recitation 6

2
Linear Programming
  • We have an objective function
  • Subject to constraints

3
Linear Programming
  • Given all parameters
  • we want to find the optimal

4
Linear Programming
  • It is easier to present the problem with a matrix
    and vectors

5
The Dual Problem
  • Given the Primal Problem
  • Its Dual Problem is defined as

6
Strong Duality Theorem
  • Given a problem and its dual problem, then
  • In other words, the optimal objective functions
    value for the primal problem, is equal to the
    optimal objective functions value for the dual
    problem.

7
Maximum Flow
  • 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

8
Maximum Flow
  • But, we are subject to some rules
  • What goes in must come out
  • Capacity restrictions

9
Max Flow with Linear Programming
  • Well show by a simple example

1
3
1
3
2
10
Max Flow with Linear Programming
  • We want to present the example in the form
  • Subject to

11
Max Flow with Linear Programming
  • Formally

12
Max Flow with Linear Programming
  • So well add another edge, and change the
    problems representation a little.

1
3
1
3
2
13
(No Transcript)
14
(No Transcript)
15
Minimum Cut
  • 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 well remove them, we wont be able
    to travel from to .

16
Minimum Cut
  • In other words
  • Well choose ,
  • where , ,
  • such that the cut value,
  • is minimal.

17
Min Cut with Linear Programming
  • Going back to the example

1
3
1
3
2
18
Min Cut with Linear Programming
  • What about
  • Is that enough?
  • We havent ensured paths from to are cut.

19
Min Cut with Linear Programming
  • Beside a variable for every edge ,
    well want a variable for every vertex
    , such that

20
Min Cut with Linear Programming
  • Lets 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

21
Max Flow with Linear Programming
  • Formally

22
(No Transcript)
23
(No Transcript)
24
(No Transcript)
25
Max Flow Min Cut Theorem
  • We now see that the problems are dual
  • So also according to the Strong Duality Theorem,
    Max Flow Min Cut

26
Integer Values
  • 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 its easy to find an integer
    solution.

27
Unimodular / Totally Unimodular
  • 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.
Write a Comment
User Comments (0)
About PowerShow.com