Docsity

Max Flow-Min Cut Theorem and Bipartite Matching, Lecture notes of Algorithms and Programming

Partial preview of the text

Download Max Flow-Min Cut Theorem and Bipartite Matching and more Lecture notes Algorithms and Programming in PDF only on Docsity!

Quiz 3

– MCQ 24

th

May 2019

– Assignment 3 due by May 26th at 11:59pm

– There will be questions with multiple choices correct.

– Marks will only be awarded if all correct choices ticked.

Dynamic Programming Summary II

– 1D dynamic programming

– Weighted interval scheduling

– Segmented Least Squares

– Maximum-sum contiguous subarray

– Longest increasing subsequence

– 2D dynamic programming

– Knapsack

– Dynamic programming over intervals

– RNA Secondary Structure

The University of Sydney Page 4

Soviet Rail Network, 1955

4

Reference: On the history of the transportation and maximum flow problems.

Alexander Schrijver in Math Programming, 91: 3, 2002.

Maximum Flow and Minimum Cut

– Max flow and min cut.

– Two very rich algorithmic problems.

– Cornerstone problems in combinatorial optimization.

– Mathematical duality.

– Nontrivial applications / reductions.

– Data mining.

– Open-pit mining.

– Project selection.

– Airline scheduling.

– Bipartite matching.

– Baseball elimination.

– Image segmentation.

– Network connectivity.

– Network reliability.

– Distributed computing.

– Egalitarian stable matching.

– Security of statistical data.

– Network intrusion detection.

– Multi-camera scene reconstruction.

– Many many more...

The University of Sydney Page 7

Cuts

Definitions:

– An s-t cut is a partition (A, B) of V with s ∈ A and t ∈ B.

– The capacity of a cut (A, B) is:

s

t

Capacity = 10 + 5 + 15

A

cap ( A , B ) = c ( e )

e out of A

The University of Sydney Page 8

s

t

A

Capacity = 9 + 15 + 8 + 30

s

t

Definitions:

– An s-t cut is a partition (A, B) of V with s ∈ A and t ∈ B.

– The capacity of a cut (A, B) is: cap (^ A ,^ B )^ =^ c ( e )

e out of A

Cuts

The University of Sydney Page 10

Minimum Cut Problem

Min s-t cut problem:

Find an s-t cut of minimum capacity.

s

t

A

Capacity = 10 + 8 + 10

s

t

The University of Sydney Page 11

Flows

– Definition: An s-t flow is a function that satisfies:

– For each e ∈ E: (capacity)

– For each v ∈ V – {s, t}: (conservation)

– Definition: The value of a flow f is:

Value = 4

f ( e )

e in to v

∑ = f ( e )

e out of v

0 ≤ f ( e ) ≤ c ( e )

capacity

flow

s

t

v ( f ) = f ( e )

e out of s

s

t

Maximum Flow Problem

– Max flow problem. Find s-t flow of maximum value.

capacity

flow

s

t

Value = 28

s

t

Flows and Cuts

– Flow value lemma. Let f be any flow, and let (A, B) be any s-t

cut. Then, the net flow sent across the cut is equal to the amount

leaving s.

s

t

Value = 24

f ( e )

e out of A

∑ −^ f^ ( e )

e in to A

∑ =^ v (^ f^ )

A

s

t

Flows and Cuts

– Flow value lemma. Let f be any flow, and let (A, B) be any s-t

cut. Then, the net flow sent across the cut is equal to the amount

leaving s.

s

t

Value = 10 - 4 + 8 - 0 + 10

A

s

t

f ( e )

e out of A

∑ −^ f^ ( e )

e in to A

∑ =^ v (^ f^ )

Flows and Cuts

– Flow value lemma. Let f be any flow, and let (A, B) be any s-t

cut. Then, the net flow sent across the cut is equal to the amount

leaving s.

– Proof:

v ( f ) = f ( e )

e out of s

v ∈ A

∑ f^ ( e )

e out of v

∑ −^ f^ ( e )

e in to v

= f ( e )

e out of A

∑ −^ f^ ( e ).

e in to A

by flow conservation, all

terms except v = s are 0

i.e. f

out

(v) – f

in

(v) = 0

f ( e )

e out of A

∑ −^ f^ ( e )

e in to A

∑ =^ v (^ f^ )

Flows and Cuts

– Max flow value ≤ cut (weak duality). Let f be any flow, and

let (A, B) be any s-t cut. Then the value of the flow is at most

the capacity of the cut (v(f) ≤ cap(A, B)).

– Proof:

v ( f ) = f ( e )

e out of A

∑ −^ f^ ( e )

e in to A

≤ f ( e )

e out of A

≤ c ( e )

e out of A

= cap( A , B ) s

t

A B

Certificate of Optimality

Corollary: Let f be any flow, and let (A, B) be any cut.

If v(f) = cap(A, B), then f is a max flow and (A, B) is a min cut.

Value of flow = 28

Cut capacity = 28 ⇒ Flow value ≤ 28

s

t

A^4

s

t