Homework 4

This homework covers the material from lectures 1 up to 20.

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

Problem 1 - More NL-completeness (20 points)

Recall that a directed graph is strongly connected if there is a directed path from every vertex to every other vertex. Let

STRONGLY-CONNECTED:={GG is a strongly connected directed graph}.

Prove that STRONGLY-CONNECTED is NL-complete.


Problem 2 - Space, Time and Padding (20 points)

Let Σ be a finite alphabet, and #Σ be a special symbol.

Let pad:Σ×NΣ# be the padding function defined as follows: given any string xΣ (of length n) and any integer m, pad(x,m):=x#a, where a:=max(mn,0). Thus, pad(x,m) is a string of length m obtained by appending the appropriate number of # symbols to x.

For any language A and any function f:NN, let pad(A,f):={pad(x,f(|x|))xA}.

Prove the following:

  1. For every language A and every natural number c, AP if and only if pad(A,nc)P.

  2. Prove that PSPACE(n).

Hint: for the second part, you can use the space hierarchy theorem, which states that for any space-constructible function f:NN, there exists a language A such that ASPACE(f(n)) but ASPACE(o(f(n))).

A function f:NN is space-constructible, where f(n)=Ω(logn), if the function that maps 1n to the binary representation of f(n) can be computed by a Turing machine using O(f(n)) space.


Problem 3 - PH and PSPACE (20 points)

Show that if PH=PSPACE, then the polynomial hierarchy has only finitely many levels (i.e., it collapses).


Problem 4 - BPP and PSPACE (20 points)

Prove that BPPPSPACE.


Problem 5 - Another PSPACE-complete language (20 points)

Prove that the following language is PSPACE-complete:

IN-PLACE-ACCEPTANCE:={M,xM is a TM that accepts x without using any extra space}.

Remark: Note that the TM M is allowed to use (i.e., read/write) on the input tape, but it cannot/should not use any extra space (i.e., it cannot use any other tape).

Previous