Hacker News new | ask | show | jobs
by xiaodai 491 days ago
Python's default is gallop sort however radixsort is much faster and performs in O(n).
3 comments

> 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.

I thought it was Timsort?
It was and always will be timsort-ly yours. iykyk.
radixsort isn't a comparison-based sort algorithm, so you're comparing apples to chickens.