Insertion Sort

Insertion Sort has the following properties:

Testing Notes

Code

As usual the code is available here:

https://github.com/abhi1010/Algorithms

Numbers

**# of Items in Array** **Time Taken** **Average for 100 numbers**
**Random** 10 0.006095 0.06095
1K 0.369859 0.0369859
1M 323.878 0.0323878
**Sorted** 10 0.005022 0.05022
1K 0.11696 0.011696
1M 122.427 0.0122427
comments powered by Disqus