by its_a_random_ac · 3y ago · 0 comments
My first computer had a billion times less RAM than this: not even 32 KB (16 KB actually). My everyday computer has 2 million times the RAM of my first computer (16 KB vs 32 GB).
And now we're waiting for the real dinosaurs here to comment!
Assuming the worst case with 4 billion elements:
log_2(4 billion) = 32
So 128 billion operations or 500GB of memory read and writes if everything is touched only once. Anything below that is peanuts.
You need unimaginably large numbers to make sorting slow. How am I going to find that much data?