Hacker News new | ask | show | jobs
by bee_rider 1121 days ago
That is a weird way of spelling mergesort.
3 comments

I believe radix sort belongs first in this list.
Performance-wise, maybe, but mergesort is clearly the most elegant/beautiful sorting algorithm. Nothing tricky going on, just a couple sorted lists being merged. Plus everyone loves a stable sort.
The most elegant is certainly sleepsort. Maybe not the most efficient, but definitely elegant.
You've never heard of quantum bogosort, then. It's stable and linear time in the right universe, and much more elegant than sleeping.
¿Por qué no los dos?

Due to the inherent unpredictability and lack of scheduling guarantees of sleep on most OSes, it is likely that sleepsort won't work in the first try.

Append a check for order and a retry loop when the solution is incorrect and now you have a production-ready sort. A sleepbogosort

I declare this my new favorite sorting algorithm.

Also, where is your god now?

> where is your god now?

In a happier timeline, I hope.

rest in peace /prog/ https://news.ycombinator.com/item?id=2657277

[edit] took me a minute to find an archive https://archive.tinychan.net/read/prog/1295544154

That is a weird way of spelling Bogo Sort.
You typo'd Sleep Sort
"Mistyped". "Typographical error" ("typo") isn't a verb.
Sleepsort is the most elegant & efficient sorting algorithm
Sleepsort just pushes the sorting task to the task scheduler, which uses sone other algorithm to do the sorting.
That's what makes it the best, it automatically improves as OS's implement more efficient algos