Docsity

5 Problems Homework 4 - Combinatorial Optimization | CMSC 858, Assignments of Computer Science

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

Partial preview of the text

Download 5 Problems Homework 4 - Combinatorial Optimization | CMSC 858 and more Assignments Computer Science in PDF only on Docsity!

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 ∈ N P by there exists a poly p and a poly predicate B such that A = {x | (∃y, |y| = p(|x|))[B(x, y)]}. We define a set A to be in N X if there exists a poly p and a poly predicate B such that A = {x | (∃y, |y| ≤ p(|x|))[B(x, y)]}. Show that N P = N X.
  3. (30 points) Let f be the function shown in class such that φ ∈ CN F − SAT iff f (φ) ∈ CLIQ. (so φ is in CNF form and f (φ) is an ordered pair (G, k) where G is 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 ∈ P such 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), G an UNLABELLED graph, that is NOT in the image of funl).
  4. (30 points) NOTATION: if B is a set then B(x) is the function that returns 1 if x ∈ B and 0 if x /∈ B. A ≤ 1 −tt B is 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 ∈ A iff B(f (x)) = b(x). Show that if there exists a sparse set S such that SAT ≤ 1 −tt S then P = N P.
  5. (Extra Credit) A ≤ 2 −OR B if There are f 1 , f 2 ∈ P such that (1) f 1 : { 0 , 1 }∗^ → { 0 , 1 }∗, (2) f 2 : { 0 , 1 }∗^ → { 0 , 1 }∗, and (3) x ∈ A iff ( (f 1 (x) ∈ B) OR (f 2 (x) ∈ B)). Show that if there exists a sparse set S such that SAT ≤ 2 −OR S then P = N P.

1