Lunes, Pebrero 20, 2012

SORTING

Research an application or scenario that the following sorting algorithms can be applied (include a description and an image):
 
  • Bubble sort - often incorrectly referred to as sinking sort, is a simple sorting algorithm that works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items and swapping them if they are in the wrong order.



 
  • Shell sort - also known as Shell sort or Shell's method is an in-place comparison sort.
  • Step-by-step visualisation of Shellsort