Eight Sorts Animated

Animations showing the action of sort algorithms are common. Indeed, there’s even one using Hungarian folk dancers. The other day, I stumbled across the best animation that I’ve seen.

It’s an animation of 8 different sort algorithms with 4 different initial conditions. By default, all 32 animations run at once so that you can see how they compare. It’s also possible to run a single algorithm or even a single algorithm with a given initial condition.

If you want to see how the algorithms compare or just be entertained, this is a great page to visit. Just run the full animation once and you’ll be hooked. One thing for sure, you’ll never run a selection sort again. Definitely worth a look.

This entry was posted in Programming. Bookmark the permalink.