Professional Documents
Culture Documents
SELIM KALAYCI
FIU-SCS
04/13/2005
Motivation
Some optimization problems are “NP-hard” (by hardness of related
decision problem), there is no poly-time algorithm unless P = NP.
• largest clique
• smallest vertex cover
• largest maximum cut
•...
Definition:Approximation algorithm
An approximation algorithm for a problem is
APPROX-VERTEX-COVER
1: C ← Ø ;
2: E′ ← E
3: while E′ ≠ Ø; do
4: let (u, v) be an arbitrary edge of E′
5: C ← C {(u, v)}
6: remove from E′ all edges incident on either u or v
7: end while
VERTEX COVER EXAMPLE
b c d b c d
a e f g a e f g
b c d b c d
a e f g a e f g
b c d b c d
a e f g a e f g
Therefore, no two edges in A are covered by the same vertex in C*, and
|C*| ≥ |A|.
2. When an edge is picked, neither endpoint is already in C, thus
|C| = 2|A|.
Combining (1) and (2) yields
|C| = 2|A| ≤ 2|C*|
q.e.d
MAX CUT PROBLEM
Given G (V,E)
1- S ← Ø and T ← V
2- If moving a single node from S to T, or
from T to S increases the number of cut
edges, make the move. Repeat 2.
3- Output the number of cut edges.
QUESTIONS