JavaScript Visualization of Sorting Algorithms
jsdo.it
jsdo.it
Also maybe add introspective sort http://en.wikipedia.org/wiki/Introsort
I vaguely remember seeing something like this on HN before.
Ah, here we go http://www.sorting-algorithms.com/
You wouldn't have to know the upper or lower bounds of the list, you could estimate them progressively from a smaller sample. Then you could insert each item to position N based on your distribution estimate. The further you get through the list, the better the distribution estimate would get, and inserting would get more accurate.
Is this plausible? Has this been done already?
And it's interesting that the best visualizations for this are java applets.
Would be a useful teaching aid IMO, as it quite poignantly demonstrates just how slow some of the 'intuitive' (for new programmers) sorting algorithms can be.