Error!
Success!

Insertion Sort « Algorithms in .NET

0
kicks

Insertion Sort « Algorithms in .NET  (Unpublished)

Insertion sort is one of the many algorithms that we will cover in this blog. I choose this algorithm to start with because I think that this is a fairly easy to understand (better start with an easy one :) ) To understand the insertion sort imagine that you have a deck of cards that is not sorted. You put this deck of cards on the table and start picking a card one by one; each time putting the card in your left hand. Each time you pick a card you must compare that card with the previous cards until you find a card that is greater than the one you have. By doing so you just sorted the deck of cards on your left hand. ...read more


Kicked By:
Drop Kicked By: