in reply to Re^4: Out of Memory when generating large matrix
in thread Out of Memory when generating large matrix
Hashing in a nutshell: apply hash function f() to the keys, bucket the data records accordingly. Where a radix sort would use part of the key directly (like a hash function that just masks bits), hashing picks a more complicated function. So there's a tradeoff. Your data is no longer sorted by the key, but by f(key). On the other hand, you get a flat distribution that makes the bucketing work.
Can you truly not see the similarity between distribution sort and hashing?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Out of Memory when generating large matrix
by BrowserUk (Patriarch) on Mar 06, 2018 at 18:06 UTC | |
by Marshall (Canon) on Mar 07, 2018 at 20:01 UTC | |
by BrowserUk (Patriarch) on Mar 08, 2018 at 02:43 UTC | |
by stevieb (Canon) on Mar 07, 2018 at 20:38 UTC | |
by Marshall (Canon) on Mar 07, 2018 at 23:57 UTC |