Docsity

Combinatorial Optimization: Bipartite Matching and Linear Programming, Study notes of Design and Analysis of Algorithms

Partial preview of the text

Download Combinatorial Optimization: Bipartite Matching and Linear Programming and more Study notes Design and Analysis of Algorithms in PDF only on Docsity!

Introduction to

Combinatorial Optimization

Combinatorial Optimization

Find the best “combination” to optimize some objective.

Shortest path (Google map)

Minimum spanning tree

Traveling salesman problem

The bipartite matching problem:

Find a matching with the maximum (or minimum) total weight.

Maximum Matching

A matching M is a subset of edges so

that

every vertex has degree at most one in

Applications of Bipartite Matching

Matching dancing partners

Auctions

Job assignment

Given a matching M, an M-alternating path is a path that alternates

between edges in M and edges not in M. An M-alternating path

whose endpoints are unmatched by M is an M-augmenting path.

Augmenting Path

What if there is no more M-augmenting path?

Prove:

A bigger matching  an M -augmenting path

  1. Consider
  2. Every vertex in has degree at most 2
  3. A component in is an even cycle or a path
  4. Since , an M-augmenting path!

If there is no M-augmenting path, then M is maximum!

Optimality Condition

Complexity

At most n iterations

An augmenting path in time by a DFS or a BFS

Total running time

Extensions

Weighted bipartite matching

repeatedly find shortest augmenting path

General matching

Weighted general matching

Application of Bipartite Matching

Now suppose you are given a partial Latin Square.

Can you always extend it to a Latin Square?

One can prove that the answer is always yes.

Cuts

An s-t cut is a set of edges whose removal

disconnect s and t

The capacity of a cut is defined as the sum of the

capacity of the edges in the cut

Minimum s-t cut problem:

minimize this capacity of a s-t cut

Matrix Rounding

Round the entries to “keep” the row sums and

column sums

League winner

See if your favorite team can still win the leaque

Overview

Basic problems and algorithms

bipartite matching

General method

Linear programming

Hard problems

Approximation algorithms

Linear Programming

Input:

A linear objective function f: R

n

> R

A set of linear constraint functions: g

i

: R

n

> R

A set of constraint values: b

i

Goal:

Find x in R

n

which:

1. maximizes f(x)

2. satisfies g

i

(x) <= b

i

Integer linear program

requires the solution

to be in Z

n