Re:Linear O(N) sorting with Radix Sort (2000)
by adrianN on Tuesday February 01, 2022 @10:14AM
(#30163543)
If you read the actual proofs, they count comparisons, not operations, when they arrive at O(nlogn). More advanced material analyses algorithms on random access machines with some fixed word size for cases where you can't assume that comparisons are constant time operations, or specialize for the data type, e.g. numbers, where you sometimes don't need o(n log n) comparisons at all (like with radix sort).
Re:Linear O(N) sorting with Radix Sort (2000)
by pfdietz on Tuesday February 01, 2022 @10:20AM
(#30163644)
The model I usually consider is a RAM where the word size is ~ logn bits. This seems closest to real computers.
Re:Linear O(N) sorting with Radix Sort (2000)
by __s on Tuesday February 01, 2022 @10:41AM
(#30163981)
I find this article pretty insightful for thinking about algorithms that involve lots of memory: http://www.ilikebigbits.com/2014_04_21_myth_of_ram_1.html
But instead we say it requires O(N * ln N) comparisons