News for hackers. Stuff that matters.
Re:The Median-of-Medians Algorithm by wfunction on Monday October 28, 2013 @03:41PM (#6629287)
> "Note that you shouldn't use the algorithm in practice"

You certainly can:

1. Run the randomized algorithm

2. If if the usual way takes too long (more than O(n) for whatever constant factor makes sense to you), just stop doing more work and switch to the deterministic algorithm

Now you get the best of both speeds, within a small constant factor (like 2).

Re:The Median-of-Medians Algorithm by anonymous on Monday October 28, 2013 @03:59PM (#6629366)
Or, since we have enough cores, run both in two parallel threads, keeping the original list read-only.
Re:The Median-of-Medians Algorithm by crb002 on Monday October 28, 2013 @05:43PM (#6630045)
Or distribute out the median_5() work to many cores at once since each call is independent of the others.