Question: Show the steps used by the shaker sort to sort the list 3, 5, 1, 4, 6, 2. The shaker sort (or bidirectional bubble sort)
The shaker sort (or bidirectional bubble sort) successively compares pairs of adjacent elements, exchanging them if they are out of order, and alternately passing through the list from the beginning to the end and then from the end to the beginning until no exchanges are needed.
Step by Step Solution
3.47 Rating (163 Votes )
There are 3 Steps involved in it
After the comparison and possible exchange of adjacent elements on the first pass from front to ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
923-M-C-M-S (1587).docx
120 KBs Word File
