Docsity

CMSC 652 Homework 3 for Fall 2007 by William Gasarch - Prof. William Gasarch, Assignments of Computer Science

Toggle sidebar
bg1
Fall 2007 CMSC 652: Homework 3 William Gasarch
Due Sep 24
COURSE WEBSITE: ”http://www.cs.umd.edu/˜gasarch/652/652.html”
READING: Read the notes on P, NP, PH and also on Randomized Computation.
1. (10 points) Write your name clearly. Staple the HW. Where and when will
the midterm be? Where and when will the final be? HW must be TYPED or
NEAT.
2. (30 points) A graph is k-colorable if there is a way to assign to every vertex a
color in the set {1, . . . , k}such that no two neighbors have the same color.
Let
COLk={G|Gis k-colorable}.
Assume that COL2∈P,COL3is NP-complete, and P6=N P .
For which pairs (a, b)∈N×Nis COLa≤p
mCOLb.Justify your answer.
(HINT: This problem does NOT involve incredibly hard reductions.) (STUPID
NOTE: N={0,1,2,3,...,}. The only graph that is 0-colorable is the graph
with no vertices.)
3. (30 points) Let QBF2be the following set of Boolean Formulas.
{φ(x1, . . . , xn, y1, . . . , ym)|(∃b1, . . . , bn)(∀c1, . . . , cm)[φ(b1, . . . , bn, c1, . . . , cm)]}.
Show that, for all A∈Σp
2,A≤p
mQBF2. (HINT: Write A∈Σp
2as
A={x|(∃py)(∀pz)[(x, y, z)∈B]}={x|(∃py)¬(∃pz)[(x, y , z)/∈B]}.
HINT2: Use Cook’s theorem.
4. (30 points) Prove each of the following.
(a) If A∈Pand B≤p
mAthen B∈P.
(b) If A∈NP then A∗∈N P . (Recall that A∗=A0∪A1∪A2∪ · · · where
Aiis the set of all strings that are the concatenation of istrings from A.
Formally Ai={w1w2·· · wi|w1, . . . , wi∈A}STUPID NOTE: A0={λ},
the empty string.)
5. EXTRA CREDIT: Show that if A∈Pthen A∗∈P.
1

Partial preview of the text

Download CMSC 652 Homework 3 for Fall 2007 by William Gasarch - Prof. William Gasarch and more Assignments Computer Science in PDF only on Docsity!

Fall 2007 CMSC 652: Homework 3 William Gasarch

Due Sep 24

COURSE WEBSITE: ”http://www.cs.umd.edu/˜gasarch/652/652.html” READING: Read the notes on P, NP, PH and also on Randomized Computation.

  1. (10 points) Write your name clearly. Staple the HW. Where and when will the midterm be? Where and when will the final be? HW must be TYPED or NEAT.
  2. (30 points) A graph is k-colorable if there is a way to assign to every vertex a color in the set { 1 ,... , k} such that no two neighbors have the same color. Let

COLk = {G | G is k-colorable}.

Assume that COL 2 ∈ P , COL 3 is NP-complete, and P 6 = N P. For which pairs (a, b) ∈ N × N is COLa ≤pm COLb. Justify your answer. (HINT: This problem does NOT involve incredibly hard reductions.) (STUPID NOTE: N = { 0 , 1 , 2 , 3 ,... , }. The only graph that is 0-colorable is the graph with no vertices.)

  1. (30 points) Let QBF 2 be the following set of Boolean Formulas.

{φ(x 1 ,... , xn, y 1 ,... , ym) | (∃b 1 ,... , bn)(∀c 1 ,... , cm)[φ(b 1 ,... , bn, c 1 ,... , cm)]}.

Show that, for all A ∈ Σp 2 , A ≤pm QBF 2. (HINT: Write A ∈ Σp 2 as

A = {x | (∃py)(∀pz)[(x, y, z) ∈ B]} = {x | (∃py)¬(∃pz)[(x, y, z) ∈/ B]}.

HINT2: Use Cook’s theorem.

  1. (30 points) Prove each of the following.

(a) If A ∈ P and B ≤pm A then B ∈ P. (b) If A ∈ N P then A∗^ ∈ N P. (Recall that A∗^ = A^0 ∪ A^1 ∪ A^2 ∪ · · · where Ai^ is the set of all strings that are the concatenation of i strings from A. Formally Ai^ = {w 1 w 2 · · · wi | w 1 ,... , wi ∈ A} STUPID NOTE: A^0 = {λ}, the empty string.)

  1. EXTRA CREDIT: Show that if A ∈ P then A∗^ ∈ P.