|
|
|
|
|
by mananaysiempre
660 days ago
|
|
It does, radix sort is in fact O(N) if size of the universe of values counts as a constant. It’s just slow in practice. The definition of the machine for which the O(N log N) bound is proved is very delicate: you have to allow O(1) operations on an arbitrarily large set of values but not encoding tricks allowing multiple values to be packed into one and then manipulated unrealistically cheaply using those operations. In particular, the machine must not be able to do arbitrary arithmetic. |
|