Hacker News new | ask | show | jobs
by kccqzy 699 days ago
The median-of-median comes at a cost for execution time. Chances are, sorting each five-element chunk is a lot slower than even running a sophisticated random number generator.
2 comments

Slowness (lower throughput) is often the tradeoff for more predictable run time.
Did you read the article? Median-of-median results in fewer comparisons than random.