Re:Linear O(N) sorting with Radix Sort (2000)
by lynndotpy on Tuesday February 01, 2022 @12:21PM
(#30165845)
The author recommends to use bucket-sort or traditional sorting for floats, but you can actually apply both to floats as well to get the guaranteed "linear" time.
Counting sort is similar and also a bit better, at O(k + n) rather than O(kn).
Counting sort is similar and also a bit better, at O(k + n) rather than O(kn).