So, let's go: Las Vegas, Monte Carlo, and... Bellagio (?) algorithms!
1/8
All three are randomized 🎲. What's the difference? The type of errors they allow.
2/8
↬RP: efficient, can make mistakes but only when they say "no", and even then w/ probability ≤½
↬ZPP: efficient *in expectation* (yet could run forever sometimes), but never make mistakes.
3/8
So, we have those 4 types of algorithms:* RP, coRP, BPP, ZPP. How do they relate to each other?
* Throughout, I'm conflating algos and complexity classes.
4/8
Q1: What is known?
5/8
Remember: RP and coRP are efficient, but can err in one case. ZPP is only efficient *on average* (can be very slow sometimes), but never gets it wrong.
Q2: What is known?
6/8
Q3: What is *not* known?
7/8
As mentioned in 4/, this thread conflates "decision problem in a complexity class" and "algorithm for a decision problem in that class." I hope you will forgive me.
8/end
"If the true answer is yes, the algo says yes w/ proba≥½.
If the true answer is no, the algo says no w/ proba one."
Pick your favorite!