首页 > Term: shaker sort
shaker sort
A variant of bubble sort that compares each adjacent pair of items in a list in turn, swapping them if necessary, and alternately passes through the list from the beginning to the end then from the end to the beginning. It stops when a pass does no swaps.
0
创建者
- GeorgeV
- 100% positive feedback