Feeds

Virtual cloud monkeys go bananas writing Shakespeare

Experiment to prove adage, without flung feces

The Power of One Infographic

A developer and Simpsons fan has reported his first success in an experiment to test the infinite monkey theorem: that primates could produce Shakespeare by randomly pressing keys.

Jesse Anderson set up software to generate random sets of nine ASCII characters and then match them against the complete works of Shakespeare, retaining useful letter matchings while deleting anything else. After over 5.5 trillion characters, he has now completed a near perfect copy of the Bard’s “A Lover’s Complaint,” a 11,621 character poem contained in an appendix to Shakespeare’s sonnets.

Anderson used Hadoop’s MapReduce with Amazon’s Elastic MapReduce and Ubuntu Linux to run the simulation. He was inspired by a scene in the classic "Last Exit to Springfield" episode of the Simpsons, in which Mr. Burns is revealed to have monkeys working on future screenplays. Anderson tells El Reg that he started the experiment in the spirit of fun, funded it entirely himself, and is now following up to see the end results and to share them with others.

“I did an interview with Fox News about this and their viewers started ranting about how this was a waste of government money,” he says. “I’ve funded this entirely by myself out of a spirit of inquiry. It’s disappointing when people only try new things to make money.”

Originally, Anderson made use of the free aspects of Amazon’s EC2 service, but as the project grew he was looking at around $20 a day to keep the simian simulation going. He then transferred the system to a home PC and is finishing the research himself to avoid living off peanuts to economize.

The mapping of other Shakespearean character sets is also continuing, with Anderson currently just two characters from finishing The Tempest and seven short of As You Like It. Technically, the experiment isn’t an exact test, since running through every conceivable letter in the hope of getting an exact match of the entire text – not mere nine-0character snippets – would take billions of years of trial and error. But it is statistically possible.

Anderson’s technical fix, however, is a lot more successful than earlier attempts. An earlier experiment in 2003 at Paignton Zoo in Devon, UK, saw six Sulawesi crested macaques being given a computer and left to get typing. The primates proved unsuccessful, mainly pressing the letter S and then destroying the computer and urinating on the keyboard – although some may argue that their last act could be construed as an accurate review of much of Shakespeare’s comedic output. ®

Mobile application security vulnerability report

More from The Register

next story
BBC goes offline in MASSIVE COCKUP: Stephen Fry partly muzzled
Auntie tight-lipped as major outage rolls on
There's NOTHING on TV in Europe – American video DOMINATES
Even France's mega subsidies don't stop US content onslaught
You! Pirate! Stop pirating, or we shall admonish you politely. Repeatedly, if necessary
And we shall go about telling people you smell. No, not really
Airbus promises Wi-Fi – yay – and 3D movies (meh) in new A330
If the person in front reclines their seat, this could get interesting
UK Parliament rubber-stamps EMERGENCY data grab 'n' keep bill
Just 49 MPs oppose Drip's rushed timetable
Want to beat Verizon's slow Netflix? Get a VPN
Exec finds stream speed climbs when smuggled out
Samsung threatens to cut ties with supplier over child labour allegations
Vows to uphold 'zero tolerance' policy on underage workers
Dude, you're getting a Dell – with BITCOIN: IT giant slurps cryptocash
1. Buy PC with Bitcoin. 2. Mine more coins. 3. Goto step 1
prev story

Whitepapers

Top three mobile application threats
Prevent sensitive data leakage over insecure channels or stolen mobile devices.
The Essential Guide to IT Transformation
ServiceNow discusses three IT transformations that can help CIO's automate IT services to transform IT and the enterprise.
Mobile application security vulnerability report
The alarming realities regarding the sheer number of applications vulnerable to attack, and the most common and easily addressable vulnerability errors.
How modern custom applications can spur business growth
Learn how to create, deploy and manage custom applications without consuming or expanding the need for scarce, expensive IT resources.
Consolidation: the foundation for IT and business transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.