Chapter 7: Time Complexity
Q16P
Show that is closed under the star operation
Q26P
Let ? be a 3cnf-formula. An ≠-assignment to the variables of ? is one where each clause contains two literals with unequal truth values. In other words, an ≠-assignment satisfies ? without assigning three true literals in any clause.
a. Show that the negation of any ≠-assignment to ? is also an ≠-assignment.
b. Let ≠SAT be the collection of 3cnf-formulas that have an ≠-assignment. Show that we obtain a polynomial time reduction from 3SAT to ≠SAT by replacing each clause ci
$$
with the two clauses
Where is a new variable for each clause, and b is a single additional new variable.
c. Conclude that -complete.
Q29P
A coloring of a graph is an assignment of colors to its nodes so that no two adjacent nodes are assigned the same color.
Show that 3COLOR is NP-complete. (Hint: Use the following three subgraphs.)
Q30P
Let collection of subsets of S, for some , such that elements of S can be colored red or blue so that no Ci has all its elements colored with the same color}. Show that is NP-complete.
Q40P
Show that if P=NP , a polynomial time algorithm exists that takes an undirected graph as input and finds a largest clique contained in that graph. (See the note in Problem 7.38.)
Q41P
In the proof of the Cook–Levin theorem, a window is a rectangle of cells. Show why the proof would have failed if we had used role="math" localid="1664195743361" windows instead.
Q4E
Fill out the table described in the polynomial time algorithm for context-free language recognition from
Q6E
Show that is closed under union, concatenation, and complement.
Q8E
Let Analyse the algorithm given on page 185 to show that this language is in .