Suppose that for a given language \(L,\) there exists a probabilistic algorithm
\(A\) that runs in expected polynomial time, and always outputs either 0 or
1\. Further suppose that for some constants \(\alpha\) and \(c,\) where
\- \(\alpha\) is a rational number with \(0 \leq \alpha<1,\) and
\- \(c\) is a positive integer,
and for all sufficiently large \(n,\) and all inputs \(x\) of size \(n,\) we have
\- if \(x \notin L,\) then \(\mathrm{P}[A(x)\) outputs 1\(] \leq \alpha,\) and
\- if \(x \in L,\) then \(\mathrm{P}[A(x)\) outputs 1\(] \geq \alpha+1 / n^{c}\)
(a) Show that there exists an Atlantic City algorithm for \(L\).
(b) Show that if \(\alpha=0,\) then there exists a Monte Carlo algorithm for
\(L\).