
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!

The following appears to be a little hand waving. But it's not really. It is, though, necessary to sit down and draw some pictures and follow it through. Not all "proofs" can be simply "read." Some take work to follow. 3–SAT Vertex Cover (VC) Let I3-SAT be an arbitrary instance of 3-SAT. For integers n and m, U = {u 1 , u 2 , …, un} and Ci = [zi1, zi2, zi3} for 1 ≤ i ≤ m, where each zij is either a uk or uk' for some k. Construct an instance of VC as follows. For 1 ≤ i ≤ n construct 2n vertices, ui and ui' with an edge between them. For each clause Ci = [zi1, zi2, zi3}, 1 ≤ i ≤ m, construct three vertices zi1, zi2, and zi3 and form a "triangle on them. Each zij is one of the Boolean variables uk or it's complement uk'. Draw an edge between zij and the Boolean variable (whichever it is) Each zij has degree 3. Finally, set k = n+2m. Theorem. The given instance of 3-SAT is satisfiable if and only if the constructed instance of VC has a vertex cover with at most k vertices. Proof: () Suppose I3–SAT is satisfiable. That is, there is an assignment to U for which every clause Ci contains at least one true variable. Let S be the set of true variables. That is, if u 10 is true, then u 10 S, and if u 20 is false, then u 20 ' S. Each clause Ci contains one true variable (at least – it may contain more, just choose one arbitrarily). Suppose zi2 S. Then, add zi1 and zi3 to S. Claim: S is a vertex cover with at most k vertices. First, there are exactly n+2m vertices in S. We selected one of each ui, ui' pair. Then, in each clause we added two more to S. Hence |S| = n+2m. The n ui, ui' vertices cover the edges {ui, ui'}. In the triangle formed from clause i, one vertex is adjacent to a ui vertex corresponding to a true variable. So, the edge from it to the ui variable (or ui') is covered by ui. The other two Ci vertices are then selected to belong to S. These two vertices cover the edges in the triangle plus the edges between the selected vertices and the U (and U') vertices. Thus, S is a vertex cover with k = n+2m vertices. () Now suppose the constructed VC instance has a vertex cover with k vertices. Let S be the vertex cover. S must contain at least one vertex from each ui ui' pair, and at least 2 from the vertices in the triangles corresponding to the m clauses (one is not enough to cover the three edges in the triangle). Again, this means we must have exactly n vertices for the n independent edges ui ui', and exactly 2m from the collection of triangles – in fact, exactly two from each triangle. Two vertices in a triangle can not cover the three edges from the triangle to the U U' vertices, Thus, one must be covered by a U U' vertex. Since we have a vertex cover, it must be possible to do this. The collection of such U U' vertices will then, in the original 3-SAT instance, render each clause true, That is, satisfiable.