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
Prove that
Problem 2 - Space, Time and Padding (20 points)
Let
Let
For any language
Prove the following:
-
For every language
and every natural number , if and only if . -
Prove that
.
Hint: for the second part, you can use the space hierarchy theorem, which states that for any space-constructible function
A function
Problem 3 - PH and PSPACE (20 points)
Show that if
Problem 4 - BPP and PSPACE (20 points)
Prove that
Problem 5 - Another PSPACE-complete language (20 points)
Prove that the following language is PSPACE-complete:
Remark: Note that the TM