Question: 5 . Consider the following program / / Given a biased coin , use i t to g ene rat e an unbiased bit b
Consider the following program
Given a biased coin use i t to g ene rat e an unbiased bit b
int x y: ;
while xy
x: p ;
y: p ; flip biased bits until they are not equal
b: x ;
a Is this a Monte Carlo algorithm or a Las Vegas algorithm? Write
one line.
b Show that in a single iteration, the probability of setting x
y is the same as the probability of setting x y
Why does this observation imply that the probability of setting
b to will be unbiased?
c Justify that this program terminates with probability provided
that p Hint: use a probabilistic variant.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
