Insertion Sort

Hello!

To view this page you need Microsoft Silverlight 3 plug-in.
Silverlight will enable your browser to understand complex Rich Internet Applications.
After installing (~10 seconds), you will be able to view and execute live algorithms.

Click here to download the plugin directly from Microsoft (4 MB)
If you want to learn more about MS Silverlight, take a look at this Wikipedia article.
Output
type in the input above and click 'Execute'
the result will be outputted here
Related Algorithms
Discussion
1
That is one beautiful and clean implementation buddy. Thanks for the submission.
30 months and 2 weeks ago by ANaimi
login to leave a comment
Version 2
Version 1 by guest
0
Version 2 by princeofcode
+2
Insertion sort is a simple sorting algorithm, a comparison sort in which the sorted array (or list) is built one entry at a time. It is much less efficient on large lists than more advanced algorithms such as quicksort, heapsort, or merge sort. However, insertion sort provides several advantages: simplicity of implementation, efficient for very small data sets or sets that are substantially sorted, uses constant memory, and is stable. Insertion Sort should be used when you have a small number of elements to sort or the elements in the initial collection are already "nearly sorted".

Performance: Best O(n), Average O(n^2), Worst O(n^2).

Wikipedia link: http://en.wikipedia.org/wiki/Insertion_sort
30 months and 2 weeks ago
up down

implementations

2 versions available

rated by

2 users - list?

viewed by

9 users - list?

favorited by

0 users - list?

last activity

30 months and one week ago

tags

Sorting