logoalt Hacker News

sobellian • today at 1:39 AM • 1 reply • view on HN

If you sort n k-bit items for a total time of O(nk logn), that scales more poorly in n than multiplying n-word integers. Of course if k is constant you can do radix sort, but I genuinely don't know under what conditions radix sort is more/less galactic than this multiplication algorithm.


Replies

adgjlsfhk1 • today at 3:44 AM

this alg is way more galactic than radix sort. radix sort often wins in the hundreds of elements. the nlogn multiplication requires numbers with more digits than atoms in the universe (although that could probably be brought down a lot)

➕ show 2 replies