
Spring 2004 CMSC 858: Homework 4 William Gasarch
Due March 5
COURSE WEBSITE: www.cs.umd.edu/ gasarch/858/858.html
(there is a tilde before the “g” in “gasarch”)
READING- The three sets of notes- Sparse Sets, PH, and More on Sparse Sets.
1. (10 points) Write your name clearly. Staple the HW so its not loose pages. Where
and when will the midterm be? Where and when will the final be?
2. (30 points) Recall that we defined A∈NP by there exists a poly pand a poly
predicate Bsuch that
A={x|(∃y, |y|=p(|x|))[B(x, y)]}.
We define a set Ato be in NX if there exists a poly pand a poly predicate Bsuch
that
A={x|(∃y, |y| ≤ p(|x|))[B(x, y)]}.
Show that NP =N X .
3. (30 points) Let fbe the function shown in class such that φ∈CN F −S AT iff
f(φ)∈CLI Q. (so φis in CNF form and f(φ) is an ordered pair (G, k) where Gis
a graph and k∈N). Let funl be the modification that outputs an UNLABELLED
GRAPH together with a number k.
(a) Is funl 1-1? If it is then prove it. If it is not then give a counterexample (that is,
give CNF formulas φ6=ψsuch that funl(φ) = funl(ψ)) AND give a 1-1 function
gunl ∈Psuch that φ∈CN F −SAT iff gunl(φ)∈CLIQ, and gunl returns as its
first part an UNLABELLED graph.
(b) Is funl onto? If it is then prove it. If it is not then give a counterexample (that
is, give an ordered pair (G, k), Gan UNLABELLED graph, that is NOT in the
image of funl).
4. (30 points) NOTATION: if Bis a set then B(x) is the function that returns 1 if x∈B
and 0 if x /∈B.A≤1−tt Bis defined as follows. There exists TWO functions f, b ∈P
such that
(a) f:{0,1}∗→ {0,1}∗.
(b) b:{0,1}∗→ {0,1}.
(c) x∈Aiff B(f(x)) = b(x).
Show that if there exists a sparse set Ssuch that SAT ≤1−tt Sthen P=N P .
5. (Extra Credit) A≤2−OR Bif There are f1, f2∈Psuch that (1) f1:{0,1}∗→ {0,1}∗,
(2) f2:{0,1}∗→ {0,1}∗, and (3) x∈Aiff ( (f1(x)∈B) OR (f2(x)∈B)).
Show that if there exists a sparse set Ssuch that SAT ≤2−OR Sthen P=N P .
1