mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Update README.md
This commit is contained in:
parent
9ba96c50a2
commit
3fef88a28f
@ -30,7 +30,7 @@ __Properties__
|
|||||||
* Best case performance O(n+k)
|
* Best case performance O(n+k)
|
||||||
* Average case performance O(n+k)
|
* Average case performance O(n+k)
|
||||||
|
|
||||||
### Coctail shaker
|
### Cocktail shaker
|
||||||
![alt text][cocktail-shaker-image]
|
![alt text][cocktail-shaker-image]
|
||||||
|
|
||||||
From [Wikipedia][cocktail-shaker-wiki]: Cocktail shaker sort, also known as bidirectional bubble sort, cocktail sort, shaker sort (which can also refer to a variant of selection sort), ripple sort, shuffle sort, or shuttle sort, is a variation of bubble sort that is both a stable sorting algorithm and a comparison sort. The algorithm differs from a bubble sort in that it sorts in both directions on each pass through the list.
|
From [Wikipedia][cocktail-shaker-wiki]: Cocktail shaker sort, also known as bidirectional bubble sort, cocktail sort, shaker sort (which can also refer to a variant of selection sort), ripple sort, shuffle sort, or shuttle sort, is a variation of bubble sort that is both a stable sorting algorithm and a comparison sort. The algorithm differs from a bubble sort in that it sorts in both directions on each pass through the list.
|
||||||
|
Loading…
Reference in New Issue
Block a user