231 points · by pavs · 16y ago · 39 comments
This is just a simple example of data sonification, albeit with some nice visualisation too, and a subject matter which appeals to the computer scientists in the room.
If you sort random permutations of the values [1, n], and map some monotonic property to the values, then not only are there provably some sounds which certain algorithms make that others don't, but more generally there are 'average case' signatures for each algorithm that give them their own recognizable cadences, and that is exactly what this video is demonstrating.
That you can use a 'boop' or a 'beep' or 'buzz' or invert the monotonicity is obvious and irrelevant.
Of course you could still pick arbitrary values and arbitrary start orderings.
But nice to look at:
It sonifies the following algorithms (from http://www.algolist.net/Algorithms/ ) - Bubble sort - Selection sort - Insertion sort - Quicksort
You can also see their sonograms.
These are really great. As a musical person it engrained these concepts that much deeper for me. My wife, who is not much of a computer science person like the merge sort the best.
I love that you can hear the bubbling in bubble sort :D