Re:Sorting 1 million 8-digit decimal numbers in 1MB of RAM
by Dylan16807 on Sunday October 21, 2012 @05:07PM
(#4680836)
You would of course use a delta scheme that can encode any number using O(log n) bits. At that point having a lopsided distribution of numbers actually helps you. Cramming the first 90% of the numbers into 1% of the space can save you about six bits per number. Even if you spread out the remaining 10% the price is going to be far less than sixty bits each.
[ Parent
| on HN ]
There are no comments on this comment yet.