Sunday, January 25, 2015

Insertion Sort

Insertion sort, unlike the other sorts, passes through the array only once.
It is much less efficient on large elements when compared to more advanced algorithms such as quicksort, heapsort, or merge sort.
The insertion sort is commonly compared to organizing a handful items like arranging playing cards based on insertion sort.

Reference following gif image which makes it much easier to understand:


No comments:

Post a Comment