World’s Strangest

Your source for the strangest things around!
Ads

Virtual Monkeys Recreate the Works of Shakespeare

The infinite monkey theorem proposes that a group of monkeys, or even a single one, could reproduce the collected works of William Shakespeare by hitting random keystrokes if given sufficient time. It is, however, hard to prove this theorem with an experiment that uses actual monkeys. So computer engineer Jesse Anderson created a simulation that successfully reproduced 99.9% of the Bard’s published writings:

“The computer program I wrote compares that monkey’s gibberish to every work of Shakespeare to see if it actually matches a small portion of what Shakespeare wrote. If it does match, the portion of gibberish that matched Shakespeare is marked with green,” Andersen explained on his blog. “The parts of Shakespeare that have not been found are colored white. This process is repeated over and over until the monkeys have created every work of Shakespeare through random gibberish.”

Anderson developed the project to test Amazon’s web servers, but also to satisfy his curiosity of whether an infinite number of monkeys could randomly reproduce Shakespeare’s work by pecking away on an infinite number of typewriters.

Link -via Geekologie | Photo by Flickr user Jemima G used under Creative Commons license


Leave a Reply