

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!


Show that N P = co โ N P if and only if N P is closed under polynomial time Turing reductions. Assume that N P were closed under polytime Turing reductions. Since every problem in co โ N P is reducible to its complement with one query, we would have co โ N P โ N P. Symetrically, N P โ co โ N P. Thus, N P = co โ N P. Assume that N P = co โ N P. Then for any problem in L โ N P , L โ N P. So there are polynomial-size and polynomial time verifiable certificates both that element of L is in L and any element in L is not in L. Let A โ P L^ for any L โ N P , with a reduction that makes at most a polynomially bounded function T (n) queries. Then to certify that A accepts on input x , we use the following certificate format: a certificate is of the form (q 1 , a 1 , c 1 ), ...(qT , aT , cT ) where T โค T (|x|), and each ci is of the form of a certificate for being in L if ai = 1 and for not being in L if ai = 0. Then the verification process is : Simulate the reduction for i = 1..T. If the iโth query of the reduction is not qi, reject. Otherwise, simulate the reduction with response ai to determine the next query. If after T queries, the reduction does not accept, reject. Then for each certificate cj , if aj = 1, verify that cj is a certificate that qj โ L. If aj = 0, verify that cj is a certificate that qj 6 โ L. If any of these verifications fail, reject. If we havenโt rejected by the end, accept. If x โ A, the reduction actually makes some queries q 1 , ..qT and accepts. Let ai = 1 if and only if qi โ L be the actual responses to the oracle. For each qi, there is a certificate ci that either qi โ L or qi โ L. Then our verification procedure will accept certificate (q 1 , a 1 , c 1 )...(qT , aT , cT ). If our verification procedure accepts (q 1 , a 1 , c 1 )....(qT , aT , cT ), each ai must really be the answer to whether qi โ L. Also, as we simulate the reduction, the reduction asks each qi to the oracle, getting correct response ai, and finally accepts. So the reduction accepts x with the actual oracle for L, and so x โ A. Thus, x โ A if and only if there is a valid certificate. Thus, we have a non- determinstic procedure for deciding membership in A. Since all the queries the reduction makes are polynomial size, and the ceritificates are polynomial size in these queries, all certificates are polynomial size in the input length, and there are polynomially many of them. So the entire certificate is polynomial length, and our verification procedure takes polynomial time. Thus, A โ N P.
Since A was an arbitrary language in P N P^ , P N P^ โ N P , i.e, N P is closed under polynomial time Turing reductions.
Show that if N P โ BP P , then N P = RP. Without any assumptions, it is easy to see that RP โ N P , since any ac- cepting run of the probabilistic algorithm is a witness that x โ L. If N P โ BP P , then there is a probabilistic algorithm A that errs at most 1 /3 of the time deciding membership in an N P -complete problem, say SAT. As seen in class, by running A 2 m + 1 times and outputting the majority, we can make the error probability exponentially small in m. Call this algorithm Am. Let L be any language in N P. Let SearchL be the corresponding search problem. We can solve SearchL in P SAT^ , making a series of queries q 1 , qT to SAT. Picking m > clogT for sufficiently large constant c, we can make the error probability for Am at most 1/(3m). Then running the reduction but simulating the oracle with Am, the probability that we ever receive an incorrect answer is at most T times the probability that a particular query is erroneous, 1/(3T ), so at most 1/3. We can then verify that the solution produced is indeed a withness that x โ L. If it is, we accept, if not we reject. If x 6 โ L, there are no witnesses, so our algorithm can never find one. Thus, we always reject. If x โ L, with probability 2/3 all answers are simulated correctly, and the algorithm produces a witness that x โ L. Thus, our algorithm accepts with probability at least 2/3. Thus, L โ RP. So N P โ RP โ N P , and N P = RP.
Remember that a one-way function is a function F โ F P so that for any polyno- mial time probabilistic algorithm 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. Let F be a one-way function. Let RF ((1n, xโฒ), yโฒ) if and only if |yโฒ| = n and F (yโฒ) = xโฒ. Consider the sampler S that on input 1n^ picks a random yโฒ of length n, and lets xโฒ^ = F (yโฒ), outputing instance (1n, xโฒ) and solution yโฒ. By construction S is a sampler for R, since xโฒ^ = F (yโฒ) and |yโฒ| = n. If any