Questions: RP and coRP Complexity Classes

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

The Miller-Rabin primality test has the property: if it declares a number composite, it is definitely composite; if it declares a number prime, there is a small chance it is actually composite. Which complexity class does this algorithm belong to?

ARP — the algorithm allows false positives (claiming prime when composite) but never false negatives
BcoRP — the algorithm has no false negatives (composite → always says composite) but allows false positives
CBPP — the algorithm has two-sided error with error probability below 1/2
DP — primality testing is known to run in deterministic polynomial time
Question 2 Multiple Choice

An RP algorithm runs on input x and outputs 'yes'. What can you conclude with certainty?

Ax is definitely in the language — RP never produces false positives
Bx is probably in the language — there is at most a 1/2 chance of a false positive
CNothing conclusive — RP allows both false positives and false negatives
Dx might not be in the language — you should run the algorithm again to confirm
Question 3 True / False

Running an RP algorithm k times and accepting if any single run returns 'yes' reduces the probability of a false negative to at most (1/2)^k.

TTrue
FFalse
Question 4 True / False

RP and coRP are the same complexity class, since both allow one-sided error and both are contained in BPP.

TTrue
FFalse
Question 5 Short Answer

Explain why one-sided error in RP is more practically useful than two-sided error in BPP, even though BPP contains RP.

Think about your answer, then reveal below.