Jump to content
IGNORED

the sound of various sorting algorithms


Recommended Posts

this, ladies and gentlemen, is IDM.

http://www.youtube.com/watch?v=t8g-iYGHpEA

  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

Link to comment
https://forum.watmm.com/topic/58919-the-sound-of-various-sorting-algorithms/
Share on other sites

  Quote
This particular audibilization is just one of many ways to generate sound from running sorting algorithms. Here on every comparison of two numbers (elements) I play (mixing) sin waves with frequencies modulated by values of these numbers. There are quite a few parameters that may drastically change resulting sound - I just chose parameteres that imo felt best.

 

but i actually remember a QBASIC demo program which came with MS-DOS5.0 which did exactly this, albeit with monophonic square-wave beeps pitched to the difference between subsequent comparisons within the sort data. it didn't sound that different.

Edited by kaini
  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

bubble sort, FTW :emotawesomepm9:

GHOST: have you killed Claudius yet
HAMLET: no
GHOST: why
HAMLET: fuck you is why
im going to the cemetery to touch skulls

[planet of dinosaurs - the album [bc] [archive]]

  On 8/20/2010 at 12:55 AM, luke viia said:

bubble sort, FTW :emotawesomepm9:

 

easiest to program as well, it's just two nested loops with an IF-THEN inside :emotawesomepm9:

  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

  On 8/20/2010 at 12:55 AM, luke viia said:

bubble sort, FTW :emotawesomepm9:

 

that was sonically akin to strobe lights to me. i fucking hate strobe lights...

it's never a bad time to repost jim bumgardner(lol)'s whitney music box

  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

sounds like absolute contrived shit.

 

 

give me a true recording of ospf convergence, and we can talk....

there are lots of different methods (algorithms) for sorting a big list of random numbers

this is various different algorithms rendered as audio and video

  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

  On 8/20/2010 at 3:20 AM, happycase said:
  On 8/20/2010 at 2:49 AM, kaini said:

it's never a bad time to repost jim bumgardner(lol)'s whitney music box

 

this one's amazing.

http://wheelof.com/whitney/index.php?var=v20

 

known(3.14)

jim is(was) actually registered here. he chimed in(lol) when this was originally posted, about two years ago.

Edited by kaini
  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

I did some investigations about zipf distributions a while back. Basically I tried to see to which extends two zipf graphs can be different by using two word frequency lists (they both contain exactly the same words) so as to work out:

X (rank of the word in the A list)

Y ( abs(rank in A - rank in B) ).

 

 

Here is what I got

melodieux1.jpg

 

And here is how this kind of stuff sound with metasynth.

MetaSynth 4 Demo Session 20090701 0102.mp3Fetching info...

 

 

BUT IT APPEARED THAT

1. I wasn't able to reproduce these shapes with random arbitrary datas.

2. These shapes were mainly caused by the sorting algorithm itself.

 

So i wrote my own sorting algorithm in order to keep the sorting randomized (or something like that), and finally, i achieved getting something homogenous.

http://www.youtube.com/watch?v=HgbXNNKY5JE

(in this vid i'm gradually adding words (=dots) to the graph. When the number of words in the graph is above 100 000, you can see the curve is no longer homogenous. And I can only hope this non-heterogeneity is not caused by some algorithmic artefact ).

 

 

[/uNINTERESTING POST]

 

edit : metasynth is quite crappy because it uses scales in order to convert pics to music. Anyone willing to convert the pic I posted to a sound with something else than metasynth ?

Edited by Babar
  On 8/20/2010 at 4:58 PM, wahrk said:

Epic as all hell.

 

wtf is a Gnome sort though?

 

just observe - it kinda skips forward until the second data point is smaller than first in a comparison, then skips back to put that data point in the correct place. suppose the way it 'runs forwards and back, tidying shit' is what made the person who named it think 'gnome'

Edited by kaini
  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   1 Member

×
×