News for hackers. Stuff that matters.
Re:Unconventional Sorting Algorithms by flipflip on Thursday October 21, 2021 @07:55PM (#28952296)
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.

There are no comments on this comment yet.