1 / 23

Additional NP-Complete Problems

This lecture discusses two important NP-complete problems: CLIQUE and VERTEX-COVER. It starts by establishing that since 3SAT is NP-complete, and can be reduced to CLIQUE, then CLIQUE itself is NP-complete. The focus then shifts to the VERTEX-COVER problem, asking if there exists a set of k vertices in a graph that covers all edges. The lecture details a reduction from CLIQUE to VERTEX-COVER, illustrating how a graph and its complement are related, demonstrating that the existence of a k-clique in the original graph corresponds to the presence of a vertex cover in its complement.

Télécharger la présentation

Additional NP-Complete Problems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Additional NP-Complete Problems Lecture 40 Section 7.5 Mon, Dec 3, 2007

  2. CLIQUE is NP-Complete • We have already seen that • 3SAT is NP-complete and • 3SAT can be reduced to CLIQUE. • Therefore, CLIQUE is NP-complete.

  3. VERTEX-COVER is NP-complete • The Vertex-cover problem: Given a graph G and an integer k, does there exist a set S of k vertices such that every edge of G has at least one endpoint in S?

  4. VERTEX-COVER is NP-complete • We will now reduce CLIQUE to VERTEX-COVER to show that VERTEX-COVER is NP-complete. • We have already shown that VERTEX-COVER is in NP.

  5. VERTEX-COVER is NP-complete • Let G, k be an instance of CLIQUE. • That is, G is a graph, k is an integer, and the question is whether G has a clique of size k.

  6. VERTEX-COVER is NP-complete • Create the graph G  as follows. • V(G ) = V(G) • e is an edge of G if and only if e is not an edge of G. • G  is the complement of G. • We claim that G has a clique of size k if and only if G  has a vertex cover of size n – k.

  7. Example G

  8. Example G G

  9. Example G G

  10. Example G G  k = 3 n – k = 5

  11. Example G G k = 3 n – k = 5

  12. Example G G k = 3 n – k = 5

  13. Example G G k = 3 n – k = 5

  14. Example G G k = 3 n – k = 5

  15. Example G G k = 3 n – k = 5

  16. Example G G k = 3 n – k = 5

  17. Example G G k = 3 n – k = 5

  18. Example G G k = 3 n – k = 5

  19. VERTEX-COVER is NP-complete • Proof • Let S be a vertex cover of G. • Let T = V – S. • We claim that T is a clique of G. • Let vertices i and j be in T. • Then i and j are not in S. • Therefore, there is no edge in G from i to j because S is a vertex cover.

  20. VERTEX-COVER is NP-complete • Then there is an edge from i to j in G. • Therefore, T is a clique in G. • Therefore, “yes” to vertex cover implies “yes” to clique.  vertex cover S of n – k in G    clique T of k in G.

  21. VERTEX-COVER is NP-complete • Now we must show that ( vertex cover S of n – k in G)  ( clique T of k in G). • But this is the same as showing that  clique T of k in G   vertex cover S of n – k in G.

  22. VERTEX-COVER is NP-complete • So now suppose that T is a clique of size k in G. • Let S = V – T. • We claim that S is a vertex cover of G. • Let e be an edge in G. • Then e must have at least one endpoint in S.

  23. VERTEX-COVER is NP-complete • Therefore, S is a vertex cover of G. • So “yes” to clique implies “yes” to vertex cover. • Therefore, “no” to vertex cover implies “no” to clique.

More Related