logoalt Hacker News

adrianN • today at 3:52 AM • 1 reply • view on HN

You can use Radix sort https://en.wikipedia.org/wiki/Radix_sort to lower the memory requirement for limited bit-width integers. But there are more practical o(n log n) methods for sorting integers.


Replies

adgjlsfhk1 • today at 3:59 AM

Well optimized radix sorts are actually pretty fast (assuming you have the proper fallbacks to quicksort/insertion sort to deal with medium/small sizes)