Humans logo

Infinite Monkey Theorem

Infinite Monkey Theorem

By Madhav KhadkaPublished 4 years ago 4 min read
Infinite Monkey Theorem
Photo by Claudette Bleijenberg on Unsplash

Infinite monkey theorem states that when a monkey tapped a key on a timeless keyboard, he typed some text as a complete work of William Shakespeare. For example, when an immortal monkey typed "g" as the first letter, it did so until it had all the letters g, forming an infinite series of gs where it would eventually be forced to type more.

Before I got into the World Wide Web with its hundreds of thousands of ideas, I wanted to explore the Infinite Monkey Theorem to some degree. I tried a thousand times with 2, 3, 4, 5, and 6 characters to record the amount of effort required to get the first game.

You may be wondering what happens when you enter the odds and get a chance that the monkey has a P. In fact, there is little chance of winning the lottery at least once. The same is true for other buttons, where the chances of type P are 1 to 40.

For simplicity, suppose a monkey has a choice of 40 keys, including letters, A, B, C, and punctuation marks. It has a 2% chance of creating a four-letter word that sounds audible when it hits all four buttons.

A monkey can press an unlimited amount of time on a random keyboard and type all the unlimited text.

Infinite monkey theory states that if a monkey randomly dialed the keys on an unlimited time typing keyboard, they would probably write any text provided, such as William Shakespeare's complete works. Considering that an unlimited number of monkeys on a typewriter has ample time to make a certain text, like Hamlet, Shakespeare's complete work. It is speculative to assume that with unlimited time and random installation, any output may not be generated. Theory translates into the concept of a problem that can only be solved if the input has sufficient resources and time.

Demonstrating that the probability of all outcomes is zero insufficient time, and this includes monkeys typing the entire text of Hamlet. The time that seems impossible can take a monkey, for example, writing Hamlet is said to be a challenge to evolution.

Imagine for a moment that a monkey could not type in Hamlet's text, which was written a few hundred years ago and is now in public. The chances of the monkey typing over the entire Shakespeare's Hamlet text are slim.

The year is 2019, and it’s a monkey that continues to make random clicks with great power to produce Shakespeare’s work.

It says, instead of a monkey, we have a machine similar to Roald Dahl's great automation program. It uses an algorithm that delivers random words and high speed, resulting in a non-massive monkey effect and a large number of typewriters. In this case, Infinite Monkey meets the Twitter user of Infinite Typewriter, but a real typewriter sitting in the reception area at the Shakespeare Globe Theater in London.

Suppose a monkey takes a long time to produce all the parts of Shakespeare. If he had enough time to talk to each immortal monkey, which would have been enough for Borges to write this essay, his result would have filled the entire library, the library containing all the combinations of spaces, punctuation, and books. It is difficult to pinpoint a major new literary work, but this logical conclusion has one important thought: It would take a group of readers of unpaid comparison books to find a logical book written by monkeys that could be considered better than Hamlet or Lord Lear.

If a monkey could write something higher than Shakespeare, it could produce a copy of Hamlet. Those who want to immerse themselves in the world of witches may choose to buy the real joy of natural chance theory instead of buying a Harry Potter monkey-based text from a young book and indulge in its sacrifice at Hogwarts.

To make the decoration more realistic, take a monkey with an infinite number of monkeys. Imagine a monkey cyborg typing 8,000 words per second. A fictional monkey given a text length can have a limited chance of typing the first 99 digits of the pi, with about 0 possible types and a 0% chance.

Infinite monkey theory makes this point out that there is a sequence of events whose chances are likely to be zero, or at least not realistic, but possible. Obediently, this theorem creates a sequence in the space of the letters corresponding to Shakespeare's works in any way.

We need to understand the possibilities to understand the proposal. There is an unlimited amount of flexibility in the game, and decisions must be made with all possible outcomes. I could type 37 Shakespearean plays and 154 words a day Shakespeare word for word, one tweet at a time.

If you have ever had wine in a can, you should thank Ben Parsons, winemaker and founder of Infinite Monkey Theorem Winery in the Rino Arts District of Denver, Colorado, and secondly in the SoCo District in Austin, Texas.

science

About the Creator

Madhav Khadka

[email protected]

Reader insights

Be the first to share your insights about this piece.

How does it work?

Add your insights

Comments

There are no comments for this story

Be the first to respond and start the conversation.

Sign in to comment

    Find us on social media

    Miscellaneous links

    • Explore
    • Contact
    • Privacy Policy
    • Terms of Use
    • Support

    © 2026 Creatd, Inc. All Rights Reserved.