CSCE 411 Lecture 33
Jump to navigation
Jump to search
« previous | Wednesday, November 14, 2012 | next »
Vertex Cover
given undirected graph , is a vertex cover iff every edge in has at least one endpoint in
Easy to find big vertex cover: let be all nodes. What about smaller vertex cover?
Decision Problem: Given a graph G and an integer , does have a vertex cover of size at most ?
VC ∈ NPC
VC ∈ NP: given a candidate solution , we can check in polynomial time if and every edge has at least one endpoint in
Reduction to 3SAT
Let be any 3SAT input over the set of variables .
Construct like this:
- Two nodes for each variable: and with an edge between them ("literal" nodes)
- Three nodes fro each clause , "placeholders for the three literals in the clause: , with edges making a triangle
- edges connecting each placeholder node in a triangle to the corresponding literal node
- Set
Example
3SAT vars , ..., and clauses
Suppose the 3SAT input (with clauses over vars) has a satisfying truth assignment (e.g. ). Show that there is a VC of of size :
- pick node in each pair corresponding to the true literal w.r.t. the satisfying truth assignment
- pick 2 nodes in each triangle such that the excluded node is connected to a true literal