

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!


See course homepage for collaboration policy and late submissions.
Problem 1 (15pts) Arrange the following functions in increasing order of growth rate, so that for two consecutive functions f (n), g(n) in your sequence, either f (n) = o(g(n)) or f (n) = Θ(g(n)). Explain the relationships of all adjacent pairs of functions in your order. Assume here that log is a logarithm to base 2 and ln is a logarithm to base e.
n!, log n, (log n)n, n^7 , ln n, log(n^4 ),
n 7
, 2 log^ n, 2 ln
(^2) n , nn, n(log^ n).
Problem 2 (10 pts) Suppose A(x; r) is a PPT primality testing algorithm. We denote by x the input (an integer, given in binary) and by r the random string of bits used by A (as discussed in class). Suppose that the running time of A is n^3. Thus, we can suppose w.l.o.g (without loss of generality) that, if x ∈ { 0 , 1 }n^ then r ∈ { 0 , 1 }n 3 (the algorithm cannot toss more coins than its running time). For every m, denote by Um the random variable uniformly distributed over { 0 , 1 }m. Then (equaling 1 if x is prime and 0 otherwise), by the definition of a PPT decision algorithm we have that for every x ∈ { 0 , 1 }n,
Pr[A(x, Un 3 ) = P RIM E(x)] ≥ 2 / 3 ,
where P RIM E(x) is the primality function.
Pr[A(x, Yn 3 ) = P RIM E(x)] ≥ 2 / 3 − ε,
Problem 3 (15 pts) Suppose we have randomized algorithm for computing a function f which gives an incorrect answer with probability ≤ 1 / 3 , and we want to reduce its error by repeating it several times and taking a majority vote. Use the Chernoff Bound to estimate how many repetitions suffice to reduce the error probability to 1 / 1000. And to 2 −k?
Problem 4 (20 pts) NP and factoring.
Problem 5 (15 pts) In class, we showed that if an encryption scheme has computationally indis- tinguishable encryptions then it also satisfies guessing indistinguishability. Show that the converse of this statement is also true.
Problem 6 (15 pts) Let (Xn)n∈N and (Yn)n∈N be two sequences of random variables so that Xn and Yn both take values in { 0 , 1 }t(n)^ for some polynomially bounded function t : N 7 → N. We say that the two sequences (Xn)n∈N and (Yn)n∈N are computationally indistinguishable if for every non-uniform PPT algorithm A, we have
|Pr[A(Xn) = 1] − Pr[A(Yn) = 1]| ≤ neg(n).
Problem 7 (10 pts) We call a sequence of sets Sn ⊂ { 0 , 1 }n^ pseudo-random if the (sequence of ) random variables Xn, distributed uniformly on Sn is comput. indist. from the uniform distribution on { 0 , 1 }n.
(^1) For Fun Only: This problem will not be graded and will not affect your grade.