Better HN
top
new
best
ask
show
jobs
Log in
Sign up
The median of a trillion numbers | Better HN
The median of a trillion numbers
(matpalm.com)
11 points · by
jfaucett
· 10y ago · 2 comments
Comments
[–]
damianknz
10y ago
If you know the range of numbers then I'd do a binary search. Get each server to count how many are higher or lower. Play the high low game. When the two totals are the same you're done. I think this covers the authors edge cases too. :-)
[–]
kefka
10y ago
Really? This is 10 minutes in hadoop time if those 1k machines were in the cluster. And 10 minutes is on the top end of the estimate.
the median of a trillion numbers
matpalm.com