- Shell Sort.
- Button Generate New Array generates an array of random values using the Math.random() function and a bar corresponding to that value in terms of height.
- Different colors are used to indicate which elements are unsorted(sky-blue), compared(darkblue) & sorted(lightgreen).
- Button Shell Sort sorts the elements using the selection sort algorithm.
- Finally, elements are sorted.
Example: Click on ‘Generate New Array’ button to generate a new random array. Click on ‘Shell Sort’ button to perform Visualization.