Anonymous user
Sorting algorithms/Comb sort: Difference between revisions
m
rewrite math to be smaller vertically
m (remove extra blank line) |
m (rewrite math to be smaller vertically) |
||
Line 1:
{{task|Sorting Algorithms}}{{Sorting Algorithm}}The '''Comb Sort''' is a variant of the [[Bubble Sort]]. Like the [[Shell sort]], the Comb Sort increases the gap used in comparisons and exchanges (dividing the gap by <math>
Variants:
*Combsort11 makes sure the gap ends in (11, 8, 6, 4, 3, 2, 1), which is significantly faster than the other two possible endings
|