Insertion Sort « Algorithms in .NET(dotnetalgos.wordpress.com)
submitted by
marlongrech(1000) 3 years, 8 months ago
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
|category: C#
|Views: 14
tags:
C# another
Everyones tags:
Your Tags: