April 9, 2011

Learning to Sort

Here is a collection of videos I found in the Internet for sorting algorithms. (Thanks to Antonio and Prem Piyush for their facebook posts).

1. Bubble Sort:

2. Insert Sort:

3. Select Sort:

4. Shell Sort:

And my favorite is to see how the various sorting algorithms sound like. This one is really nice as you get a feel of why time complexity matters a lot!

My favorite however is Heap Sort.