Here's a fabulous visualization of 15 sorting algorithms. But don't just watch — turn up the volume and listen:
The horizontal axis represents an array of sequential numbers, shuffled randomly. The vertical axis is the number to be sorted from smallest to highest. Red bars are those being moved by the algorithm. But the beauty is in the audio: the tone frquency is the value of the bar being moved, and so the algorithm makes a melody unique to its method. There's more details on how the sorting algorithms were implemented from the creator, Timo Bingmann, and here's a playlist of videos of slow-motion versions each of the algorithms (via Kotte).
By the way, here's another great example of sonification of data. That's all for this week, we'll be back on Monday. Have a great weekend.
Comments
You can follow this conversation by subscribing to the comment feed for this post.