News for hackers. Stuff that matters.
Re:Don't use Hadoop when your data isn't that big by im3w1l on Tuesday September 17, 2013 @11:26AM (#6399807)
For reference, finding the median is an O(n) problem on a single computer, and sorting is an O(n log n) solution.

An O(n) algorithm is Quick select. It is basically like quick sort but you only recurse on the side of the pivot that contains the median.

http://en.wikipedia.org/wiki/Quickselect

There are no comments on this comment yet.