Applet/WebStart Freakshow: enhanced SortAlgorithm Applet
I’ve enhanced my old sort algorithm applet (originally inspired by the sort applets in the Java Tutorial, and a code example in Sun’s The Java Programming Language book).
What’s cool is that now…
- There’s a bad ass Webstart version!
- there are sort metrics provided after every sort completes
- there’s a button to start all the sort algorithms at once to watch the algorithms ‘race’
- there’s a radio group for controlling the speed of the sort
Here’s the source code… if anyone can tell me why my Selection sort is consistently slower than my Bubble sort (it shouldn’t be, should it?), you win the No-Prize.
In case the applet doesn’t work in your browser, it’s also available via WebStart. Actually, the webstart version is much better, cuz you can resize the applet window, and the graphs redraw themselves to fit. The graphs look pretty cool at full-screen size on my PowerBook. Besides, only dorks put applets on their website…
No comments
Jump to comment form | comments rss [?] | trackback uri [?]