The Infinite Monkey Theorem states that a monkey hitting keys completely at random on a typewriter for an infinite amount of time will, eventually, type any given text. Even the complete works of William Shakespeare.  Some quotes are truly amazing. Consider the famous quote,  "BREVITY IS THE SOUL OF WIT" That's 26 amazing characters.  Suppose a monkey is seated in front of a KEYBOARD WITH 28 CHARACTERS (one for each of the 26 letters in the alphabet, plus the space bar, and a comma).  Suppose the monkey types only 26 characters completely at random. If X is the number of different 26 character strings it could have typed, then the chances that it typed the quote is one divided by X. What is X?

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question

The Infinite Monkey Theorem states that a monkey hitting keys completely at random on a typewriter for an infinite amount of time will, eventually, type any given text. Even the complete works of William Shakespeare. 

Some quotes are truly amazing. Consider the famous quote, 

"BREVITY IS THE SOUL OF WIT"

That's 26 amazing characters. 

Suppose a monkey is seated in front of a KEYBOARD WITH 28 CHARACTERS (one for each of the 26 letters in the alphabet, plus the space bar, and a comma). 

Suppose the monkey types only 26 characters completely at random. If X is the number of different 26 character strings it could have typed, then the chances that it typed the quote is one divided by X. What is X? 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Time complexity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning