ScratchData LogoScratchData
Back to kenny2scratch's profile

Cocktail Shaker Sort - Sorting Algorithms

KEkenny2scratch•Created May 31, 2019
Cocktail Shaker Sort - Sorting Algorithms
12
9
402 views
View on Scratch

Instructions

Cocktail shaker sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent pairs and swaps them if they are in the wrong order. This pass is then done again, in the other direction. The passes through the list are repeated until the list is sorted. Cocktail shaker sort is a comparison sort, i.e. it sorts only by comparing and swapping list elements. https://en.wikipedia.org/wiki/Cocktail_shaker_sort

Description

Part of my series of sorting algorithms: https://scratch.mit.edu/studios/14132246/

Project Details

Project ID314254195
CreatedMay 31, 2019
Last ModifiedMay 31, 2019
SharedMay 31, 2019
Visibilityvisible
CommentsAllowed