Re:Unconventional Sorting Algorithms
by contravariant on Thursday October 21, 2021 @06:22PM
(#28951533)
Even without destroying the universe you can sort your list with a quantum source of entropy, just use:
[ Parent
| on HN ]
You can just kill the observer. Quantum immortality sort:
def qisort(list):
qshuffle(list)
if not sorted(list):
kill_observer()
Only in the universe in which th the list is sorted, the user will survive. There might be no such universe, but then the user is no longer waiting on the result.