Re:Hoare’s Rebuttal and Bubble Sort’s Comeback
by phkahler on Sunday January 30, 2022 @08:14AM
(#30136891)
There is a nice variant of bubble sort called comb sort. It uses a variable stride between compared elements. IIRC stride = len/1.3 and then shrink it by the same amount each pass. It's way faster than plain bubble sort.
I still dont know why quicksort is so common given its worst case performance.
I still dont know why quicksort is so common given its worst case performance.