by testerofwaters · 9y ago · 0 comments
Would be more valid to compare to Boost's "spreadsort" which is similarly a hybrid radix sort algorithm (and also outperforms std::sort).
However, it might be possible if comparisons are not essential - e.g. radix sort is (with some assumptions) O(N)
Basically, how many elements do you have to move in a list of N elements to end up with one of the possible orderings
Most people would be fine with a hybrid radix sort for day to day use.
The problem is the information in a permutation (n! possible orderings) and one can only ever "throw away" half of them on every comparison, leading to log_2(n!) or nlog(n).
[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n429...
The standard doesn't seem to say "or better" here, but I know that in other places it does (or least used to say something similar).