
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Lecture 14 Dr. Chip Martel, Susan Margulies Thursday, May 15 ECS 122A, Spring 2008
First, we define the Vertex Cover problem. Recall that a vertex cover is a subset C ⊆ V of the vertices such that every edge in the graph has at least one endpoint in C (every edge is covered by at least one vertex). Consider the following (which we will prove is a 2-approximation algorithm):
ALGORITHM: Approx-Vertex-Cover INPUT: A graph G OUTPUT: An vertex cover C ⊆ V (G) 1 C ← Ø 2 E′^ ← E(G) 3 while E′^6 = Ø do 4 Let (u, v) be an arbitrary edge in E(G) 5 C ← C ∪ (u, v) 6 Remove every edge in E′^ touching either u or v 7 end while 8 return C
|C∗| ≥ |A|
Furthermore, every choice of an edge in line 4 is a choice of two vertices that are not already in C. Therefore,
|C| = 2|A|
Therefore, clearly
|C∗| ≥ |A| 2 |C∗| ≥ 2 |A| = |C|
2 ≥