Homework 3

This homework covers the material from lectures 11 to 15.

Due date: November 15th, 10pm Waterloo time.

Required Exercises

Problem 1 - Another way to detect languages in BPP (20 points)

Let M be a poly-time PTM and let C be a language where, for some fixed 0<ε1<ε2<1, we have that xCPrr[M(x,r)=1]ε1, and xCPrr[M(x,r)=1]ε2.

Prove that C is in BPP.


Problem 2 - Zero-error probabilistic polynomial time (ZPP) (20 points)

Define the complexity class ZPP as the class of languages L for which there exists a poly-time PTM M which has three possible outputs 0, 1, and , where, on any input x, we have:

  • Prr[M(x,r){L(x),}]=1, that is, M never outputs the wrong answer; and
  • Prr[M(x,r)=]1/2.

Prove that ZPP=RPcoRP.


Problem 3 - Interactive Proofs (20 points)

Let MAM be the class of languages L which are 1/3-decided by a Merlin-Arthur-Merlin protocol, where Merlin first sends a message to Arthur, then Arthur sends a message to Merlin, and finally Merlin sends another message to Arthur, and then Arthur decides (deterministically) whether to accept or reject. (Remember, Arthur can only use randomness to send his message to Merlin.)

Prove that MAM=AM.

Hint: probabitity amplification.


Problem 4 - Space and Time (20 points)

Prove that BPLP.


Problem 5 - Logspace reductions (20 points)

Let

NONBIPARTITE={GG is not a bipartite graph}. and stUCONN={G,s,tG is an undirected graph with a path from s to t}.

Prove that NONBIPARTITELstUCONN.

Hint: From a graph G(V,E), construct a new graph H(V1V2,F), where for every vV, we have a copy v1V1 and v2V2, and where F:={{u1,v2},{u2,v1}{u,v}E}. Now, note that G is not bipartite if and only if there is a path in H from u1 to u2 for some uV. Use this idea to construct your logspace reduction.

Also, remember that a graph is bipartite if and only if it has no odd cycles.

Previous
Next