top | item 43043430

(no title)

xiaodai | 1 year ago

Python's default is gallop sort however radixsort is much faster and performs in O(n).

discuss

order

selcuka|1 year ago

> radixsort is much faster and performs in O(n).

Radix sort time complexity is not O(n); it's O(n*k) where k is the size of the largest element. Besides it has an additional O(n+k) space complexity.

ijustlovemath|1 year ago

I thought it was Timsort?

pstoll|1 year ago

It was and always will be timsort-ly yours. iykyk.

perlgeek|1 year ago

radixsort isn't a comparison-based sort algorithm, so you're comparing apples to chickens.