Docsity

Problem Set 8 for CPSC 311: Analysis of Algorithms, Assignments of Algorithms and Programming

Toggle sidebar
bg1
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.

Partial preview of the text

Download Problem Set 8 for CPSC 311: Analysis of Algorithms and more Assignments Algorithms and Programming in PDF only on Docsity!

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 ≤P 6 = SAT, and that 6 =SAT is NP-complete. [Hint: Replace each clause (y 1 ∨ y 2 ∨ y 3 ) by two clauses (y 1 ∨ y 2 ∨ zi) and (¬zi ∨ y 3 ∨ b), where zi is a new varable for each clause and b is a single additional new variable.]
  3. Problem 34-3 d,e,f (that is, prove that 3-SAT≤P 3-COLOR).
  4. Problem 34-

Make sure that you structure your answers well. Please typeset your solutions in LATEX or turn in a neatly written solution.