Section 7.3

Cook's Theorem

[12/42%]
Show
LaTeX
Example 7.28

Show that if P=NPP=\mathrm{NP}, then all nonempty proper subsets AA of Σ∗\Sigma^{*} are NP-complete.

?
Example 7.29

If AA is known to be NP\mathrm{NP}-complete, is A2A^{2} always NP\mathrm{NP}-complete?

?
Example 7.31

In the proof of Cook's theorem, we have used conditions (4.1) −(4.5)-(4.5) on ???-shaped windows over matrix SS to satisfy condition (4). Show that if we, instead, work with ???-shaped windows over matrix SS, then no conditions on these windows can satisfy condition (4). In other words, show that the following relation does not hold for any subset T⊆(Γ′)4T \subseteq \left(\Gamma^{\prime }\right)^{4} :

(∏j=0r(n)∑(a,b,c,d)∈Tyi,j−1,ayi,j,byi,j+1,cyi+1,j,d)=1⟺αi⊢αi+1, \left(\prod _{j=0}^{r(n)} \sum _{(a, b, c, d) \in T} y_{i, j-1, a} y_{i, j, b} y_{i, j+1, c} y_{i+1, j, d}\right)=1 \Longleftrightarrow \alpha _{i} \vdash \alpha _{i+1},

where αi\alpha_{i} denotes the ii th configuration corresponding to the assignments to variables yi,j,ay_{i, j, a}.

?
Example 7.32

Show that, in the proof of Cook's theorem, function f1f_{1} is necessary. That is, no definition of subset TT can make the following true: Fx′=f0f2f3f4F_{x}^{\prime }=f_{0} f_{2} f_{3} f_{4} is satisfiable if and only if x∈L(M)x \in L(M).

?
Example 7.33

In the proof of Cook's theorem, it is possible to remove condition (1), as long as we replace condition (4') by a new condition (4'') over six-square, ???-shaped windows. Find the subconditions over the six-square, ???-shaped windows that make (4′′)\left(4^{\prime \prime }\right) equivalent to condition (4), without the assumption of condition (1).

?
Problem 7.3.1

A Boolean formula which is a product of literals is called an elementary product. A DNF (disjunctive normal form) is a sum of elementary products.

?
(a)

Prove that a DNF Boolean formula can be switched in polynomial time to a CNF formula (with possibly more variables) that preserves satisfiability.

(b)

Prove that if P≠NPP \neq \mathrm{NP}, then there is no polynomial-time algorithm that switches a CNF Boolean formula to a DNF formula, and preserves satisfiability.

Problem 7.3.2

Assume that AA and BB are two NP\mathrm{NP}-complete sets. Show that A∪BA \cup B and A∩BA \cap B are not necessarily NP\mathrm{NP}-complete, if P≠NPP \neq \mathrm{NP}. Is A∪BA \cup B always NP\mathrm{NP}-complete when A∩B=∅A \cap B=\emptyset?

?
Problem 7.3.3

This exercise follows the notations defined in Exercise 3 of Section 7.1.

?
(a)

Show that there exists a polynomial-time computable, polynomially honest function ff such that its range f({0,1}∗)f\left(\left\{ 0,1\right\}^{*}\right) is NPcomplete. [Hint: For any NP\mathrm{NP}-complete set A,fA, f takes an instance xx of AA and a string yy as the input and decides whether yy is a witness to x∈Ax \in A.]

(b)

Define Sf={⟨u,v,y⟩∣y≥lev Min⁡f(u,v)}S_{f}=\left\{ \langle u, v, y\rangle \mid y \geq_{\text{lev }} \operatorname {Min}_{f}(u, v)\right\}. Show that there exists a polynomial-time computable, polynomially honest function ff such that SfS_{f} is NP-complete. [Hint: Design a function like part (a), except that the problem AA is a minimization problem.]

Problem 7.3.4

Assume that P≠NPP \neq \mathrm{NP}. Let AA and BB be two sets that are complete for co−NPc o-\mathrm{NP} (i.e., Aˉ\bar{A} and Bˉ\bar{B} are NP-complete). Is ABA B necessarily in co-NP? Is ABA B necessarily co-NP-complete? Is it possible that ABA B is in PP? Justify your answer.

?
Problem 7.3.5

Suppose that, in the proof of Cook's theorem, we drop condition (1) and replace condition (4′)\left(4^{\prime }\right) by (4‾)(\overline{4}), which specifies some subconditions on five-square windows of one of the four shapes shown in Figure 7.11. Show that no such subconditions on the five-square windows can make (4) equivalent to (4′)\left(4^{\prime }\right).

?
Problem 7.3.6

Consider the alternative proof of Cook's theorem given in Example 7.33. Let T⊆(Γ′)6T \subseteq \left(\Gamma^{\prime }\right)^{6} be the set corresponding to the twelve windows of Figure 7.10; that is, (a,b,c,d,e,g)∈T(a, b, c, d, e, g) \in T if and only if (a,b,c,d,e,g)(a, b, c, d, e, g) is in one of the twelve forms in Figure 7.10, and satisfies the corresponding conditions given in the three cases. Show that if there exists a mapping ϕ:(Γ′)3→(Γ′)3\phi :\left(\Gamma^{\prime }\right)^{3} \rightarrow \left(\Gamma^{\prime }\right)^{3} such that (a,b,c,d,e,g)∈T(a, b, c, d, e, g) \in T if and only if ϕ(a,b,c)=(d,e,g)\phi (a, b, c)= (d, e, g), then L(M)L(M) is in PP.

?
Problem 7.3.7

In this exercise, we consider a different setting for the proof of Cook's theorem. Instead of attaching the state symbol to the tape symbol currently scanned by the tape head, we may define separate Boolean variables to represent the state and the position of the tape head. That is, in addition to variables yi,j,ay_{i, j, a} (for a∈Γa \in \Gamma only), we define, for each i=0,…,r(n)i=0, \ldots , r(n) and each q∈Qq \in Q, a variable Qi,qQ_{i, q} to mean that the state symbol of αi\alpha_{i} is qq, and for each pair (i,j)(i, j), with i,j∈{0,…,r(n)}i, j \in \left\{ 0, \ldots , r(n)\right\}, a variable Hi,jH_{i, j} to mean that, in the configuration αi\alpha_{i}, the tape head is scanning the jj th symbol. To prove Cook's theorem in this setting, then we need to define six Boolean functions g1,…,g6g_{1}, \ldots , g_{6}, such that, for k=1,…,6,gk=1k=1, \ldots , 6, g_{k}=1 if and only if the condition (k)(k) below holds:

(1) For each i=0,…,r(n),αii=0, \ldots , r(n), \alpha_{i} is in exactly one state.

(2) For each i=0,…,r(n)i=0, \ldots , r(n), the head scans exactly one cell in αi\alpha_{i}.

(3) For each i=0,…,r(n)i=0, \ldots , r(n) and each j=0,…,r(n)j=0, \ldots , r(n), the jj th cell of αi\alpha_{i} contains exactly one symbol.

(4) α0\alpha_{0} is the initial configuration of MM on input xx.

(5) αr(n)\alpha_{r(n)} is an accepting configuration.

(6) For each i=0,…,r(n)−1,αi⊢αi+1i=0, \ldots , r(n)-1, \alpha_{i} \vdash \alpha_{i+1}.

Assume that g1,…,g5g_{1}, \ldots , g_{5} satisfy the condition that gk=1g_{k}=1 if and only if condition (k)(k) holds. Also let g6g_{6} be

∏i=0r(n)∏j=0r(n)∏q∈Q∏u∈Γ∑(p,v,D)∈δ(q,u)[(Hˉi,j+Qˉi,q+yˉi,j,u+Hi+1,j+Δ)⋅(Hˉi,j+Qˉi,q+yˉi,j,u+Qi+1,p)⋅(Hˉi,j+Qˉi,q+yˉi,j,u+yi+1,j,v)] \begin{aligned} & \prod _{i=0}^{r(n)} \prod _{j=0}^{r(n)} \prod _{q \in Q} \prod _{u \in \Gamma } \sum _{(p, v, D) \in \delta (q, u)}\left[\left(\bar{H}_{i, j}+\bar{Q}_{i, q}+\bar{y}_{i, j, u}+H_{i+1, j+\Delta }\right)\right. \\ & \left.\cdot \left(\bar{H}_{i, j}+\bar{Q}_{i, q}+\bar{y}_{i, j, u}+Q_{i+1, p}\right) \cdot \left(\bar{H}_{i, j}+\bar{Q}_{i, q}+\bar{y}_{i, j, u}+y_{i+1, j, v}\right)\right] \end{aligned}

where Δ=−1\Delta =-1 if D=LD=L, and Δ=1\Delta =1 if D=RD=R. Find a counterexample to disprove that Gx=∏i=16gi=1G_{x}=\prod_{i=1}^{6} g_{i}=1 if and only if MM accepts xx. Find a new function g6g_{6} satisfying that Gx=1G_{x}=1 if and only if MM accepts xx.

?