Slashdot Mirror


Sorting Algorithms As Dances

mikejuk writes "You may well have seen many simulations of sorting algorithms that aim to show how the algorithm works. However I guarantee that you have never seen anything quite in the same league as the videos made by Sapientia University — they are simply crazy but in the nicest possible way. They folk dance their way though bubble sort, shell sort, insertion sort and selection sort. Very, very weird but you find you can't but help checking that they are doing it right. Now anyone want to try quicksort?"

11 of 68 comments (clear)

  1. They tried bogosort... by dgatwood · · Score: 5, Funny

    ...but it was indistinguishable from a bunch of drunk guys stumbling around in a crowded SF Muni station.

    --

    Check out my sci-fi/humor trilogy at PatriotsBooks.

  2. Missing option by Jeremi · · Score: 2

    I'm disappointed that they don't have a video demonstrating Stooge Sort.

    --


    I don't care if it's 90,000 hectares. That lake was not my doing.
  3. parallel versions by Odinlake · · Score: 4, Interesting

    I'd love to see parallel versions.. Much more action that way. Confusing? I think it could be beautiful.

    1. Re:parallel versions by mmmmbeer · · Score: 2

      I think you could do quicksort that way without being confusing. Have them come in as a line, with the first person (who happens to conveniently be 4) splits them into two groups. He then moves to the background while the two groups split again (on 1 or 2 and 7). This leaves only pairs, who reorder as necessary, then everybody comes back into one line. Quite simple, so long as you choose the initial sorting carefully.

  4. Re:5 minute video by mmmmbeer · · Score: 2

    Yes, but they were using inefficient algorithms. A quicksort, for example, would be much faster, and could also be done in parallel.

  5. Re:5 minute video by plover · · Score: 5, Funny

    That's why we use computers for algorithms. Neat idea though.

    See, that's what you get with interpretive dance.

    A compiled dance would be much more efficient.

    --
    John
  6. Dance Your PhD by nbauman · · Score: 2

    I guarantee that you have never seen anything quite in the same league as the videos made by Sapientia University

    Without diminishing the creativity of these videos, I recommend that if you enjoyed these you might do a Google search for "Dance Your PhD".

    Selection of a DNA aptamer for homocysteine using systematic evolution of ligands by exponential enrichment
    http://news.sciencemag.org/sciencenow/2010/10/and-the-dance-your-phd-winner-is.html

    Nucleic acids never looked so good.

  7. Re:5 minute video by martin-boundary · · Score: 5, Funny
    Did you notice that the comparison function is actually polymorphic? For example, the dance steps are different when comparing two guys and when comparing a guy and a girl.

    So really, even if you compile the dance, I think you'll find that the dynamic binding overhead will kill the running performance.

  8. Had it at school already by alonz · · Score: 4, Interesting

    My intro-to-CS professor (20 years ago... my, how time flies) used to illustrate sorting algorithms by sorting the students in class by height.
    Once someone participates in a sorting algorithm, they sure won't forget :)

  9. Re:5 minute video by metacell · · Score: 2

    Pfft, real programming languages have static polymorphism.

  10. Re:Where is the quick sort or merge sort dances? by zippthorne · · Score: 4, Insightful

    Yeah, there's never been any kind of line dance where the dancers split into two groups, do stuff, and than merge back into the larger group in some ordered fashion....

    --
    Can you be Even More Awesome?!