In the reduction from 3-SAT to CLIQUE, how is the graph constructed from a 3-CNF formula with m clauses?
AOne vertex per variable, edges between variables in the same clause
BOne vertex per literal occurrence in each clause, edges between non-contradictory literals from different clauses
COne vertex per clause, edges between clauses that share a variable
DOne vertex per literal occurrence in each clause, edges between all literals in the same clause
The reduction creates one vertex per literal in each clause and connects two vertices with an edge if and only if they come from different clauses and are not contradictory (not a literal and its negation).
Question 2 Multiple Choice
What is the relationship between the clique problem and the independent set problem?
AThey are the same problem with different names
BA set S is a clique in G if and only if S is an independent set in the complement graph of G
CIndependent set is solvable in polynomial time while clique is not
DA clique in G corresponds to a vertex cover in the complement graph of G
A set S is a clique in G if and only if S is an independent set in the complement graph (the graph with edges exactly where G has none). This makes the two problems polynomial-time equivalent.
Question 3 True / False
Verifying that a given set of k vertices forms a clique can be done in polynomial time.
TTrue
FFalse
Answer: True
Verification requires checking all k(k-1)/2 pairs of vertices for edges, which is polynomial in k and thus polynomial in the size of the input. This is why CLIQUE is in NP.
Question 4 True / False
In the 3-SAT to CLIQUE reduction, a clique of size m in the constructed graph may include two vertices from the same clause.
TTrue
FFalse
Answer: False
Edges only connect vertices from different clauses, so no two vertices from the same clause are adjacent. A clique of size m must therefore pick exactly one vertex per clause.
Question 5 Short Answer
What is the name of the property relating a vertex cover to an independent set in the same graph?
Think about your answer, then reveal below.
Model answer: S is an independent set if and only if V \ S is a vertex cover
The complement relationship means that removing an independent set from the vertex set yields a vertex cover, and vice versa. This links the two NP-complete problems directly.