Monte Carlo (left): throw a fixed number of darts to estimate π — fixed time, approximate answer. Las Vegas (right): retry a random draw until it succeeds — always correct, random time.
1/p.
| Aspect | Monte Carlo (π darts) | Las Vegas (retry) |
|---|---|---|
| Running time | O(N) fixed | random, E = O(1/p) |
| Answer | approximate (may err) | always correct |
| Quality metric | error ~ 1/√N | expected attempts 1/p |
| Improve by | more darts / amplify | raise p (more good draws) |
| Tail risk | none (fixed time) | P[>t] = (1−p)^t |
| Finishes when | after N darts | on first success |
1/√N. Right:
Las Vegas guarantees a correct answer but pays a random number of
attempts, averaging 1/p. See junior.md and
middle.md for the trade-off, senior.md for SLA
sizing, and professional.md for the RP/ZPP/BPP theory.