Editing
Randomized Algorithms
(section)
Jump to navigation
Jump to search
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!
== <span style="color: #FFFFFF;">Understanding</span> == Randomized algorithms are understood through '''Speed''' and '''Risk'''. '''1. The "Needle in the Haystack" (Las Vegas)''': Imagine you need to "Find any apple" in a giant box of 1,000,000 fruits (where 50% are apples). * **Deterministic**: Check fruit 1, then 2, then 3... * **Worst Case**: The apples are all at the "End" of the box. You check 500,000 fruits. * **Randomized**: Pick 20 fruits "At random." * **Reality**: The "Probability" that you **won't** find an apple in 20 random picks is "Almost Zero" ($0.5^{20} = 0.0000009$). * You are "Almost Guaranteed" to finish in 20 steps instead of 500,000. '''2. The "Estimate" (Monte Carlo)''': Some problems are "Too big" to solve perfectly. * How many "People are in a stadium"? * You could "Count every seat" (Deterministic / Slow). * Or you can "Take 10 photos" of random sections, "Count the people" there, and "Multiply" (Randomized / Fast). * Your answer is "Probably" 99% correct. In a "Fast-moving world," 99% accuracy in 1 second is better than 100% accuracy in 1 hour. '''3. Avoiding "The Trap" (Pivot Picking)''': Traditional algorithms can be "Tricked" by "Bad Data." * If a "Hacker" knows your algorithm "Always starts at the beginning," they can "Arrange the data" to make your computer "Freeze." * By "Adding Randomness," you make your computer "Unpredictable." The hacker "Can't prepare" because the computer "Decides what to do" only after it starts. '''The 'Buffon's Needle' Experiment (1777)'''': One of the first "Monte Carlo" methods. You can calculate the value of **Pi** ($\pi$) just by "Dropping needles" on a lined floor and counting how many cross a line. This proved that "Random actions" are linked to "Deep Mathematical Truths." </div> <div style="background-color: #8B0000; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information