Cocktail shaker sort- An improvement of bubble sort

Author Topic: Cocktail shaker sort- An improvement of bubble sort  (Read 235 times)

Offline lamisha

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Cocktail shaker sort- An improvement of bubble sort
« on: April 22, 2017, 11:43:03 AM »
The cocktail shaker sort is an improvement on the Bubble Sort. The improvement is basically that values "bubble" both directions through the array, because on each iteration the cocktail shaker sort bubble sorts once forwards and once backward.

link: http://www.programming-algorithms.net/article/40270/Shaker-sort

Offline Tasnim_Katha

  • Full Member
  • ***
  • Posts: 119
  • Test
    • View Profile
Re: Cocktail shaker sort- An improvement of bubble sort
« Reply #1 on: April 22, 2017, 11:46:28 AM »
informative one :)