Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can't guarantee that monkeys are typing perfectly randomly. We may never see better than "it was the best of times it was the blurst of times"


It doesn't need to be perfectly random; you just need every sequence to have a nonzero probability of being generated.

"to be or not to be" may be more likely for a monkey on a keyboard to generate than a random string, actually. The keys to generate it are highly repetitive and relatively close together. That's true for any NL string: the lower entropy of NL strings are reflected in the keyboard layout. If the monkeys switch to Dvorak, they could probably generate Shakespeare even faster.


  What, you egg?
    [He stabs him.]
(from Macbeth)

Are you certain the real thing isn't "the blurst of times" already?


Your monkeys are pretty bad at Shakespeare if the best they come up with "it was the best of times it was the blurst of times".



> Your monkeys are pretty bad at Shakespeare

Worse, they can’t even tell their Shakespeare from their Dickens (It’s the opening line of A Tale of Two Cities).


you misunderstand infinity


So if I randomly type letters from the top row of my keyboard forever, I'll eventually type the entire works of Shakespeare?

Of course not. There are lots of ways you can bias random that remain random, but prevent every possible output from being generated. That's all GP was saying. You can't just say "infinite time", you need to rule out biases that would prevent the desired result.


You don't need "perfect randomness". The claim was about "perfect randomness". You just need a non-zero probability for the outcomes in question. And you need independence between subsequent random events.


how so?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: