Slashdot Mirror


Sorting Algorithms — Boring Until You Add Sound

An anonymous reader writes "Anyone who's ever taken a programming course or tried to learn how to code out of a book will have come across sorting algorithms. Bubble, heap, merge — there's a long list of methods for sorting data. The subject matter is fairly dry. Thankfully, someone has found a way to not only make sorting more interesting, but easier to remember and understand, too."

3 of 118 comments (clear)

  1. Try it with people by twoshortplanks · · Score: 5, Funny
    It's always more fun to do this with real people (sort by height, for example). The London Perl Mongers tried this as a drinking game: You get enough people down the pub (or, in one this case, outside a bar in portugal during conference season) and apply booze. Then bubble sort them as a group (lots of shouting Stay! Switch!.) Add drinking penalties when people screw up the algorithm. You get the idea.

    There's a video on the internet somewhere. Free pint to the first person to find it.

    --
    -- Sorry, I can't think of anything funny to say here.
  2. The sound of bubble sort by Anonymous Coward · · Score: 5, Funny

    That's strange. When I listen to the sound of bubble sort all I hear is one of my college professors threatening to hunt me down and kill me in my sleep if I ever use it.

  3. Re:Sorting is a waste of time by mea37 · · Score: 5, Insightful

    If you think all that time examining sorting algorithms was intended to teach you about sorting, then you indeed missed the point. Programming courses spend a lot of time on sorting because it is a common task that can be easily understood, but for which there are a lot of different algorithms with very different performance characteristics. The point is to teach algorithm analysis skills.

    Judging from the quality of code I encounter regularly, though, you're far from alone in failing to pick up that lesson.