Question
Prove that the following problem is NP-complete: given an undirected graph $G=(V, E)$ and an integer $k$, return a clique of size $k$ as well $a s$ an independent set of size $k$, provided both exist.
Step 1
A clique is a subset of vertices such that every two vertices in the subset are connected by an edge, while an independent set is a subset of vertices such that no two vertices in the subset are connected by an edge. Show more…
Show all steps
Your feedback will help us improve your experience
Prathan Jarupoonphol and 52 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
A graph G has an independent set of size k if there is a set V of k nodes in G so that no two nodes in V share an edge. Let INDEPENDENT-SET = { <G, k> | G is a graph with an independent set of size k }. Show that INDEPENDENT-SET is NP-complete by reduction from VERTEX-COVER.
Let $n$ be a positive integer. Show that a subgraph induced by a nonempty subset of the vertex set of $K_{n}$ is a complete graph.
Graphs
Graph Terminology and Special Types of Graphs
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD