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
Las Vegas 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!
== Optimal Las Vegas algorithm == In order to make a Las Vegas algorithm optimal, the expected run time should be minimized. This can be done by: # The Las Vegas algorithm ''A''(''x'') runs repeatedly for some number ''t''<sub>1</sub> steps. If ''A''(''x'') stops during the run time then ''A''(''x'') is done; otherwise, repeat the process from the beginning for another ''t''<sub>2</sub> steps, and so on. # Designing a strategy that is optimal among all strategies for ''A''(''x''), given the full information about the distribution of ''T<sub>A</sub>''(''x''). The existence of the optimal strategy might be a fascinating theoretical observation. However, it is not practical in real life because it is not easy to find the information of distribution of ''T<sub>A</sub>''(''x''). Furthermore, there is no point of running the experiment repeatedly to obtain the information about the distribution since most of the time, the answer is needed only once for any ''x''.<ref>{{cite journal |last=Luby |first=Michael |date=27 September 1993 |title=Optimal Speedup of Las Vegas algorithms |journal=Information Processing Letters|volume=47|issue=4 |pages=173β180|doi=10.1016/0020-0190(93)90029-9}}</ref>
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)