ADVANCED ALGORITHMS
Lecture 21: LPs for matching, covering
1
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
ADVANCED ALGORITHMS
Lecture 21: LPs for matching, covering
1ANNOUNCEMENTS
➤ HW 5 will be out tonight — due in two weeks ➤ Project “mid-way” report due next Friday
2LAST CLASS
3➤ Linear programming
N
k
i
Nn
ain
a b
AIN E be
aina'sbm
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
USING LP FOR COMBINATORIAL PROBLEMS
5➤ Continuous formulations … matching?
discrete optimization
nu
g
variables
ng for edges
ij3
i
j
Cfoe
Constraints
eneigiiimcn lrL.repiAa
B
v j
nij
1
max
Wijnij 4 0
USING LP FOR COMBINATORIAL PROBLEMS
6➤ Continuous formulations … matching? ➤ Main problem: what if the solutions are fractions?
Main question: are the “corner points” integral?
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
System
qq.gs
constraints
q
irregs
we take any m of the constraints
solve
we
get
an
integer point
PROOF 1 (OUTLINE) : TOTAL UNIMODULARITY
8Claim
Take any
m of the
2mi 2n constraints
The intersection point hasonly
0 1 values
1 1 values
N
N12 I 7h22
Z
f
EE
ni El
m
1,1 1 1
1
PROOF 1 (OUTLINE) : TOTAL UNIMODULARITY
9Em
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
B EH
dit 113
Nij
PROOF 2: UNDERSTANDING CORNER POINTS …
10z
Alternate characterization
f
z
z
u is
a
corner ptiff
u
For any perturbation direction Z
z
p
Z
at most
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
PROOF 2
11Claim
Let
u
lae any feasible
non integral point
satisfying Then F zto.it
utz and
u
z bothSati
E
ijs.t.ocuig.cl
i
i
a
8
i
ie
i
Observation
Entry vertex has
degree
rO
O
O
I
g
Exercised
Any such graph has a cycle I
e
there
is
a cycle
using only
the edges of E
Ptu
if
8
be
a
can
pt
For small enough 8
this will still be
a
feasible solution
This gives the perturbation
z that
we want
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
WARNINGS
13➤ This is a very special phenomenon! ➤ Polytopes usually have fractional corners …
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
all
edges are
monitored
Vats
p
NuC
7 01411
relaxation
LP FOR VERTEX COVER
15Constants Hedges
i j
ni taj 31
min
ni
7
312
O E ni I l
U
Of Nu
Nv Nw E 1
nut nu 31
v
O
Nu Nu Nw 42
Nr t Kw71
Nwt Nu
I
BAD CORNERS
16“ROUNDING” SOLUTION
17APPROXIMATION ALGORITHM
18OTHER 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.
LP AND ITS LIMITATIONS
20IN 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