HNHacker News
TopNewBestAskShowJobs

fangbingchen

29 karma · joined June 23, 2022

submissionscomments
fangbingchen··on Show HN: I developed a fast general purpose sorting algorithm
ChenSort is an improved bucket sort, which is a general-purpose sorting algorithm.

The time complexity is O(n) at best and O(nlogn) at worst, the space complexity is O(n), and it is stable.

Randomly generate [1000,10000000] random numbers in the range [-2^63,2^63-1], average speed is 3 times faster than Quicksort, fastest is 20 times. Traditional counting sorts and bucket sorts cannot handle such a large range of values because the performance is worse than Quicksort.