Different Gaps for Comb Sort

preview_player
Показать описание


In comb sort, the gap is gradually reduced by dividing it by a constant "shrink factor". This video features shrink factors from 1.1 and 1.5, incrementing by 0.05. Empirically, 1.3 is the optimal shrink for comb sort.

**Each "shuffle" is a copy of the array that was only randomly generated once before sorting in order to better compare shrink factors.
Рекомендации по теме
Комментарии
Автор

Sure do love when combsort is basically bubble sort.

sugarfrosted
Автор

Oh wow! Can you do the same for shellsort? Maybe include some of the other known gap sequences like the ones described on the shellsort wikipedia page?

Edit: oh i just realized you already did that

smestre
Автор

Why 1.3 is optimal? Our teacher told us optimal value is around 1.247 and showed us some formula for this value.

alexanderskladovski
Автор

Can let "shrink factor" is 2?

d
Автор

Now I'm curious what if the shrink factor is 2

diamboy
Автор

What is the difference between Comb sort and Shell sort?

jervinsevilla
Автор

Bubble Sort & The Cooler Bubble Sort

TornadoHyenyaku