Chapter 9: Problem 5
You are to design and analyze an efficient probabilistic algorithm \(B\) that takes as input two integers \(n\) and \(y,\) with \(n>0\) and \(0 \leq y \leq n,\) and always outputs 0 or 1 . Your algorithm should satisfy the following property. Suppose \(A\) is a probabilistic algorithm that takes two inputs, \(n\) and \(x,\) and always outputs an integer between 0 and \(n\). Let \(Y\) be a random variable representing \(A\) 's output on input \(n, x\). Then for all inputs \(n, x,\) we should have \(\mathrm{P}[\boldsymbol{B}(n, A(n, x))\) outputs 1\(]=\mathrm{E}[Y] / n\).
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.