ADVANCED ALGORITHMS Lecture 21: LPs for matching, covering 1 - - PowerPoint PPT Presentation

advanced algorithms
SMART_READER_LITE
LIVE PREVIEW

ADVANCED ALGORITHMS Lecture 21: LPs for matching, covering 1 - - PowerPoint PPT Presentation

ADVANCED ALGORITHMS Lecture 21: LPs for matching, covering 1 ANNOUNCEMENTS HW 5 will be out tonight due in two weeks Project mid-way report due next Friday 2 LAST CLASS Nn k N i Linear programming a b ain AIN E


slide-1
SLIDE 1

ADVANCED ALGORITHMS

Lecture 21: LPs for matching, covering

1
slide-2
SLIDE 2

ANNOUNCEMENTS

➤ HW 5 will be out tonight — due in two weeks ➤ Project “mid-way” report due next Friday

2
slide-3
SLIDE 3

LAST CLASS

3

➤ Linear programming

N

k

i

Nn

ain

a b

AIN E be

aina'sbm

slide-4
SLIDE 4

LAST CLASS

4

➤ Geometry of linear programs ➤ what is a “corner point”? (intersection of n of the planes) ➤ neighboring corners for u (directions given by A-1, where A defines u) ➤ no neighbor gives improvement => optimum! ➤ main idea behind simplex algorithm ➤ Can solve in polynomial time via Ellipsoid, interior point methods a localopt

globof

slide-5
SLIDE 5

USING LP FOR COMBINATORIAL PROBLEMS

5

➤ Continuous formulations … matching?

discrete optimization

nu

g

variables

ng for edges

ij3

i

j

Cfoe

Constraints

  • T.fi

eneigiiimcn lrL.repiAa

B

v j

nij

Voenij

Vi

1

max

Wijnij 4 0

slide-6
SLIDE 6

USING LP FOR COMBINATORIAL PROBLEMS

6

➤ Continuous formulations … matching? ➤ Main problem: what if the solutions are fractions?


Main question: are the “corner points” integral?

slide-7
SLIDE 7

MATCHING

7

➤ Theorem: all the corner points of the “matching polytope” are

integral.

➤ Thus, solving the LP gives a 0/1 solution!

a

setoffeasible solutions

a

to the linear

m

variables

m

  • f edges

System

qq.gs

constraints

q

irregs

If

we take any m of the constraints

solve

we

get

an

integer point

slide-8
SLIDE 8

PROOF 1 (OUTLINE) : TOTAL UNIMODULARITY

8

Claim

Take any

m of the

2mi 2n constraints

The intersection point hasonly

0 1 values

1 1 values

N

N12 I 7h22

Z

f

  • k

i i

i

EE

ni El

m

1,1 1 1

1

slide-9
SLIDE 9

PROOF 1 (OUTLINE) : TOTAL UNIMODULARITY

9

Em

Any

corner pt canbe obtained by solving

a

term

B n

z

where

B

comprises

linear Sys

precisely

m

rows of M

and z

is the RHS of

the corresponding constraint

n n a

Nu

Fit

B EH

  • ITI

dit 113

Nij

slide-10
SLIDE 10

PROOF 2: UNDERSTANDING CORNER POINTS …

10

z

Alternate characterization

f

z

z

u is

a

corner ptiff

u

For any perturbation direction Z

fl

z

p

Z

at most

  • ne of

Utz

and u

z

is in the feasible set

Given

u if we need to show that

u w Not a corner

then

ive it suffices to inhibit

2 sit

utz and

u

2

are both feasible

slide-11
SLIDE 11

PROOF 2

11

Claim

Let

u

lae any feasible

non integral point

satisfying Then F zto.it

utz and

u

z bothSati

E

ijs.t.ocuig.cl

  • U
  • i

i

i

a

8

i

i

e

i

Observation

Entry vertex has

degree

rO

O

O

slide-12
SLIDE 12

I

g

Exercised

Any such graph has a cycle I

e

there

is

a cycle

using only

the edges of E

  • no fading

Ptu

if

8

be

a

  • o.us

can

pt

For small enough 8

this will still be

a

feasible solution

This gives the perturbation

z that

we want

slide-13
SLIDE 13

FLOWS IN NETWORKS

12

➤ Theorem: all the corner points of the “flow polytope” are integral.

for

finding max flow

we

can simply

use

linear

programming

slide-14
SLIDE 14

WARNINGS

13

➤ This is a very special phenomenon! ➤ Polytopes usually have fractional corners …

slide-15
SLIDE 15

MONITORING EDGES (A.K.A. VERTEX COVER)

14

➤ Problem. given undirected graph G = (V

, E), find a small set of nodes S such that every edge has at least one of its neighbors chosen.

find the smallest

Lo

  • f nodes so that

all

edges are

monitored

Vats

p

NuC

  • I

7 01411

relaxation

slide-16
SLIDE 16

LP FOR VERTEX COVER

15

Constants Hedges

i j

ni taj 31

min

ni

7

312

O E ni I l

U

Of Nu

Nv Nw E 1

Now

nut nu 31

v

O

Nu Nu Nw 42

Nr t Kw71

Nwt Nu

I

slide-17
SLIDE 17

BAD CORNERS

16
slide-18
SLIDE 18

“ROUNDING” SOLUTION

17
slide-19
SLIDE 19

APPROXIMATION ALGORITHM

18
slide-20
SLIDE 20

OTHER PROBLEMS — INDEPENDENT SET

19

➤ Problem. given undirected graph G = (V

, E), find the largest possible set of nodes S such that has no edges within.

slide-21
SLIDE 21

LP AND ITS LIMITATIONS

20
slide-22
SLIDE 22

IN SUMMARY

21

➤ LP (“continuous”) formulations for discrete problems ➤ can get lucky — all corners are integral (i.e., discrete) ➤ corners can be “somewhat integral” — approximation algorithms ➤ corners can be totally useless — means better LP is needed! ➤ Next time … randomized rounding