Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Monte Carlo algorithm
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==One-sided vs two-sided error== While the answer returned by a [[deterministic algorithm]] is always expected to be correct, this is not the case for Monte Carlo algorithms. For [[decision problem]]s, these algorithms are generally classified as either '''false'''-biased or '''true'''-biased. A '''false'''-biased Monte Carlo algorithm is always correct when it returns '''false'''; a '''true'''-biased algorithm is always correct when it returns '''true'''. While this describes algorithms with ''one-sided errors'', others might have no bias; these are said to have ''two-sided errors''. The answer they provide (either '''true''' or '''false''') will be incorrect, or correct, with some bounded probability. For instance, the [[Solovay–Strassen primality test]] is used to determine whether a given number is a [[prime number]]. It always answers '''true''' for prime number inputs; for composite inputs, it answers '''false''' with probability at least {{frac|1|2}} and '''true''' with probability less than {{frac|1|2}}. Thus, '''false''' answers from the algorithm are certain to be correct, whereas the '''true''' answers remain uncertain; this is said to be a ''{{frac|1|2}}-correct false-biased algorithm''.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)