4 ms·
Here's a sorting algorithm with a similar idea of assuming a random input and applying an idea from hashing (but instead of buckets, it's robin-hood hashing): h
by dzaima 4y ago
Here's a sorting algorithm with a similar idea of assuming a random input and applying an idea from hashing (but instead of buckets, it's robin-hood hashing): https://github.com/mlochbaum/rhsort https://github.com/mlochbaum/rhsort
Unlike this post though, it's got proper comparisons against the best C implementations of other algorithms, and is aware that, as most inputs aren't entirely random, its use is very limited.
- 6keZbCECT2uB 4y agoThis is exactly what I meant by an interpolation variation on a library sort with several more important details. I didn't know Marshall was into sorting since I know of him from his history of optimizing Dyalog APL.