I need to compute a median of a large number of numbers (10M+). Sorting takes me about 35s, but I want to be able to do it in at most 1/3 of that time.
I know there are randomized algorithms and PDL has a median primitive, and there are other libraries on CPAN. What's the best way to go?