This applet animates 5 sorting algorithms :
  • INSERTION SORT
  • SELECTION SORT
  • BUBBLE SORT
  • SHAKER SORT
  • SHELL SORT


  • The different options available for each algorithm are :
  • RESIZING the window to make it bigger
  • FAST or SLOW Mode
  • RANDOM or REVERSE-SORTED data


  • Note : There are a couple of odometers that have been added to the sorter for aesthetic value only. It measures only upto the nearest 100. So if a sorting algorithm takes 1204 comparisons, the odometer for comparisons will stop at 04.

    Click on the button at the top of the page and watch the sorting algorithms at work! Note: you may need to resize the window.