Exercices - Chapter6
Exercices - Chapter6
—–P vs NP—–
16. Suppose you have a polynomial-time algorithm to solve CLIQUE. Explain how to solve
the following problem in polynomial time.
Input: A graph G = (V, E).
Question: What is the size of a largest clique in G (we want as many vertices as
possible)?
18. Prove that for any L and L0 that are N P -Complete, we have L ≤P L0 and L0 ≤P L.
20. In this problem, we want to answer the following question: is there a problem in N P
that is not in N P -Complete? Consider the problem W EIRD, where
Input: an array A[1..n] of numbers
Question: is 1 = 1?
22. (a) Find an example of a 3-SAT Boolean formula, with exactly 2 clauses, that is not
satisfiable.
(b) Find an example of a 3-SAT Boolean formula, with exactly 3 variables, that is
not satisfiable.