

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Give proofs for each problem. Proofs can be high-level, but be precise. You may use without giving a proof any result proved in class or in the textbook. In particular, to prove NP-completeness, it suffices to give a reduction from any of the NP-complete problems from the text or from class. However, you must show your reduction is valid, by showing the equivalence of the constructed instance and the original.
From last homework Prove that N P is closed under polynomial-time Turing reducibility (i.e., that P N^ P ⊆ N P if and only if N P = co−N P.
Polynomial-time hierarchy Assume that N P ⊆ T IM E(nO(log^ n)). Prove that for every i there is a k so that Σpi ⊆ T IM E(nO((log^ n)k ))
Randomized algorithms Prove that, if N P ⊆ BP P , then N P = RP.
Space complexity Remember that k-SAT is the satisfiability problem re- stricted to CN F formulas with clause sizes at most k. Prove that 2-SAT is co-N L-complete (under deterministic logspace mapping re- ductions). (Hint: The previous version said N L complete. While
N L = co − N L, so this is true, it is easier to map the complement of 2 SAT to the connectivity problem and vice versa. At least half of the problem is to prove that 2-SAT is in co − N L. Also, you may use any facts about N L mentioned in class without proof.)
Foundations of cryptography Remember that a one-way function is a function F ∈ F P so that for any polynomial time probabilistic algo- rithm A and any polynomial p, for sufficiently large n, the probability over input x of length n and A’s random coins that A inverts F (x), i.e., that F (A(F (x))) = F (x), is at most 1/p(n). Let R(x, y) be a relation in P , with |y| = poly(|x|). A solved instance sampler S for R is a probabilistic time procedure that given 1n, S(1n) generates a distribution on pairs (xn, yn) so that |xn| = n and R(xn, yn). The sampler produces hard instances if for any probabilistic polynomial- time algorithm A and any polynomial p, for sufficiently large n, the probability that R(xn, A(xn)) is less than 1/p(n). Prove that there is a one-way function F if and only if there is a relation R ∈ P and a solved instance sampler S for R producing hard instances.
Sudoku experiment We started looking at reducing sudoku problems to SAT last assignment. The sudoku problem of size n is as follows. The input is an n^2 × n^2 matrix M whose entries are either “blank” or an integer between 1 and n^2. A solution fills in the blank spaces with integers between 1 and n^2. The following constraints must be met: Each integer from 1 to n^2 appears exactly once in each row, in each column, and in each n × n sub-matrix of the form M [jn + 1...(j + 1)n][in + 1..(i + 1)n] for each 0 ≤ i, j ≤ n − 1. The problem is to find any solution meeting the constraints, or return “no solution possible” if there is no such solution. Last assignment, you gave at least two different ways to reduce the Sudoku problem to CN F − SAT. Try solving sudoku problems by combining the above reductions with a complete SAT solver, such as Zchaff (download page, //www.princeton.edu/ ˜chaff/zchaff/index2.html Use as test inputs puzzles of sizes 9 by 9, 16 by 16, and 25 by 25 (and larger, if possible) generated by picking the entries of the first row and column as random permutations, condiitioned on all entries in