
Problem Set 8
CPSC 311 Analysis of Algorithms
Andreas Klappenecker
The assignment is due next Monday, December 5, before class.
Solve the following exercises from the textbook; note that the book distinguishes
between problems and exercises.
1. Make sure that you fully understand the problems SAT, 3-CNF-SAT=3-SAT,
CLIQUE, VERTEX-COVER, HAM-CYCLE, TSP, SUBSET-SUM, INDEPEN-
DENT SET (cf. Problem 34-1), k-COLOR (cf. Problem 34-3).
2. Let φbe a boolean formula in 3-CNF. An 6=-assignment to the variables of φis
one where each clause contains two literals with unequal truth values. In other
words, an 6=-assignment satisfies φwithout assigning three true literals in any
clause.
(a) Show that the negation of a 6=-assignment to φis also a 6=-assignment.
(b) Let 6=SAT be the collection of boolean formulas in 3-CNF that have an 6=-
assignment. Show that 3−SAT ≤P6= SAT, and that 6=SAT is NP-complete.
[Hint: Replace each clause (y1∨y2∨y3) by two clauses (y1∨y2∨zi) and
(¬zi∨y3∨b), where ziis a new varable for each clause and bis a single
additional new variable.]
3. Problem 34-3 d,e,f (that is, prove that 3-SAT≤P3-COLOR).
4. Problem 34-1
Make sure that you structure your answers well. Please typeset your solutions
in L
A
T
E
X or turn in a neatly written solution.