What does a sorting algorithm SOUND like? « adafruit industries blog

What does a sorting algorithm SOUND like?


Chuck writes

A while back I saw a post about visualizing sorting algorithms. But what do they sound like? I put together a quick Chuck script that does a bubble sort of a list of integers. Each time it compares two values it first converts the values from a MIDI note value to a frequency and then plays two tones with those frequencies.

Code and more on the site!

Filed under: random — by adafruit, posted August 12, 2009 at 11:18 pm


4 Comments »

  1. Now this is the kind of stuff that the internet needs more of!

    Comment by Jeremy Brooks — August 13, 2009 @ 12:59 am

  2. Just found my new ringtone!

    Comment by rsbohn — August 13, 2009 @ 3:48 pm

  3. a very suspenseful sort!

    Comment by Stars — August 13, 2009 @ 11:10 pm

  4. Here something similar: http://www.youtube.com/watch?v=ol5ml9e2THw

    It sonifies every Java instruction triggered by different sorting algorithms. For more on CodeSounding see: http://www.codesounding.org/indexeng.html

    Comment by robermann79 — August 21, 2010 @ 2:22 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Prove you are human by reading this resistor:
0Ω+/- 5%

0
0
1
2
3
4
5
6
7
8
9

0
0
1
2
3
4
5
6
7
8
9

0
0
1
2
3
4
5
6
7
8
9

5
5
10
20

Match the sliders on the left to each color band on the resistor.

Click Here for a new resistor image.

New to electronics? Click here to learn how to read resistor values.

www.flickr.com
adafruit's items Go to adafruit's photostream
www.flickr.com
items in Adafruits More in Adafruits pool