Homework 2
This homework covers the material from lectures 5 to 11.
Due date: October 11th, 10pm Waterloo time.
LaTeX template, in case you want to write it in LaTeX.
Required Exercises
Problem 1 - Basic Relations Between Complexity Classes (20 points)
-
Prove that
. -
Suppose that
. Is it true that ? What about ? Justify your answers with a proof.
Problem 2 - NP Completeness (20 points)
Let
-
Show that the negation of a
-assignment is also a -assignment. -
Let
-3SAT be the collection of 3CNF formulas that have a -assignment. Show that -3SAT is NP-complete.
Hint: Reduce from 3SAT. What happens if you replace clause
Problem 3 - Max-Cut (20 points)
A cut in an undirected graph
Hint: Reduce from
Problem 4 - Polynomial Hierarchy (20 points)
-
Show that if
, then . -
The VC-dimension is an important concept in computational learning theory. If
is a collection of subsets of a finite set , the VC-dimension of , denoted , is the size of the largest subset such that for every , there exists such that . In this case, we say that is shattered by .A boolean circuit
succinctly represents a collection of subsets of if consists of all such that .Let
Prove that
.
Problem 5 - Circuits for Majority (20 points)
-
We can consider circuits that output strings over
by considering a circuit with multiple output gates. Let be the function that takes two -bit strings and (the bit representation of two integers) and outputs the -bit string that represents the sum of and in binary. Show that we can compute by a family of circuits such that . -
Define the function
as follows:Show that
can be computed by a family of circuits such that .