TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

An easier version of the infinite monkey theorem

3 pointsby txstc55over 1 year ago

2 comments

txstc55over 1 year ago
The infinite monkey theorem states that a monkey hitting keys at random on a typewriter keyboard for an infinite amount of time will almost surely type any given text, including the complete works of William Shakespeare. Since it&#x27;s basically pratically impossible to achieve that, I made a website with some house rules:<p>1. Any characters between two words will be ignored<p>2. We will only check for the next word in Shakespeare&#x27;s work, so if the next word is &#x27;thy&#x27;, and the monkey magically typed &#x27;hell&#x27;, it won&#x27;t count.<p>3. Every couple characters the monkey typed without hitting a word, we will increase an error tolerance, if the error tolerance is 3, and the current word is &#x27;thee&#x27;, if the monkey typed &#x27;tahbeke&#x27;, it will count since removing &#x27;abk&#x27; which is 3 characters, we get &#x27;thee&#x27;<p>4. Any user on the website can insert a new character every 30 seconds.<p>With those rules, maybe, just maybe we get to see the entirety of Shakespeare&#x27;s work being typed out by the monkey.
txstc55over 1 year ago
It will take roughly 37 years for the monkey to type out the entirety of shakespeare once