Hacker News new | ask | show | jobs
by neilh23 3790 days ago
I always liked the quantum bogo-sort algorithm:

1) Randomise list

2) if list not in correct order, destroy the universe

The universe that's left will have the correct answer.

1 comments

Note that the random source should be truly (in quantum sense) random for this to work.
"Help, I used a PRNG and I accidentally destroyed all known universes"
Better check StackOverflow.