Monday, July 11, 2011

Bubble-sort with Hungarian ("Csángó") folk dance

If you ever got bored while studying sorting algorithms, this is a fun way to do it:



Now in order to evaluate complexity you need to see how tired the dancers are in the worst case scenario :)
Post a Comment