Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: How to evolve a permutation?

by papidave (Monk)
on Feb 20, 2008 at 21:02 UTC ( #669105=note: print w/replies, xml ) Need Help??

in reply to How to evolve a permutation?

Perhaps you could try the following method:

Step 1: evolve a room full of monkeys.

Step 2: give the monkeys your input string.

Step 3: wait.

Eventually the monkeys will generate all possible permutations of your input string. If your input string consists of a large enough pile of alphabet blocks, eventually they may give you the complete works of William Shakespeare as well.

If your monkeys starve to death before the algorithm completes, repeat step 1.

I think you might encounter the thermal death of the universe before the algorithm completes, but if that happens, don't come looking for me. :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://669105]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-11-19 20:04 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (282 votes). Check out past polls.