释义 |
cocktail shaker sort
cocktail shaker sort (algorithm)A bi-directional bubble sort. Passes alternatebetween ascending through array indexes, pushing the largestitem to the bottom; and descending through array indexes,pushing the smallest item to the top.
|