r/QuantumComputing • • Apr 27 '21

Quantum Bogosort

Researching quantum algorithms and I find this gem on Wikipedia:

Quantum Bogosort is a hypothetical sorting algorithm based on Bogosort, created as an in-joke among computer scientists. The algorithm generates a random permutation of its input, checks if the list is sorted, and, if it is not, destroys the universe. Assuming that the many-worlds interpretation is true, the use of this algorithm will result in the existence of exactly one surviving universe where the input is successfully sorted.

65 Upvotes

6 comments sorted by

6

u/[deleted] Apr 27 '21

Maybe the LHC does generate black holes that swallow up the earth on a regular basis

1

u/Arbitrary_Pseudonym Apr 27 '21

In order for that to happen, mass enough to form a stable black hole would have to all tunnel into a single location, which is about as likely (or given that a blob of net positive charge (the colliding particles) is going to repel half of any matter, MORE likely) to happen in any other location at any given time. So...in a way, the LHC actually decreases the chance of the earth being swallowed by a black hole, lol.