Anonymous user
Sorting algorithms/Cocktail sort with shifting bounds: Difference between revisions
Sorting algorithms/Cocktail sort with shifting bounds (view source)
Revision as of 11:16, 18 May 2020
, 4 years agoadded an alternative word for "bubble" because two directions are involved for the "values" movement, ("bubble" implies upwards, value-wise).
(Added Go) |
m (added an alternative word for "bubble" because two directions are involved for the "values" movement, ("bubble" implies upwards, value-wise).) |
||
Line 26:
The improvement is basically that values "bubble" (migrate) both directions through the
array, because on each iteration the cocktail sort ''bubble sorts'' once
forwards and once backwards.
|