Chapter 9: Problem 12
Suppose Algorithm RP is implemented using an imperfect random number generator, so that the statistical distance between the output distribution of the random number generator and the uniform distribution on \(\\{2, \ldots, m\\}\) is equal to \(\delta\) (e.g., Algorithm \(\mathrm{RN}^{\prime}\) in \(\S\) 9.2). Assume that \(2 \delta<\pi(m) /(m-1)\). Also, let \(\mu\) denote the expected number of iterations of the main loop of Algorithm \(\mathrm{RP}\), let \(\Delta\) denote the statistical distance between its output distribution and the uniform distribution on the primes up to \(m,\) and let \(\ell:=\operatorname{len}(m)\). (a) Assuming the primality test is deterministic, show that \(\mu=O(\ell)\) and \(\Delta=O(\delta \ell)\) (b) Assuming the primality test is probabilistic, with one-sided error \(\varepsilon,\) as in \(\S 9.4 .1,\) show that \(\mu=O(\ell)\) and \(\Delta=O((\delta+\varepsilon) \ell) .\)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.