Tags
agent ajax API automation backup books C cron currying databases dns emacs event handler exersize exim F# facebook find firefox functional programming Google hadoop hadoop-streaming http installation java javascript jython languages linux lwp makefile map MSSQL mysql Nagios NLP nrpe one-liner Open Library perl php Programming proxy python randomization recursion regex resources serialization sorting ssh stanford parser testing thumbnails time & dates ubuntu vim wordnet Wordpress
Insertion sort in Python.
I’m losing faith in my programming skills today, so I’ve decided to re-implement sorting functions. Each day I’ll try to decrease the complexity of the algorithms, but, this day being the first, I’ll give you a quadratic insertion sort. This is an insertion sort, right, or is it shell sort? Heh…
What should be next? Bubble sort? Heap sort? Come back tomorrow for a better algorithm. If you find a bug, please report it!