SORTING and Searching


The Sorting Game

Welcome to The Sorting Game, where you get to test your wits and manual dexterity in a race against the clock.

In the sorting game, the object is to put all the elements in to sorted order as quickly as possible. To do this, you click, drag, and drop the elements with the mouse. Click (but don't release the button) on an element to pick it up, drag it to it's new location, and then drop it by releasing the button. If you drop an element on another element, the two elements are swapped. If you drop an element between two other elements, the element is inserted between them, and all the other elements are shifted down to make room. The timer will stop once the elements are in sorted order. At any time, you can press the reset button to scramble the order of the elements and restart the clock. Hurry, the clock is ticking!


If your browser recognized the applet tag, you would see an applet here.

Try playing this game with your friends, and seeing who can sort the elements the fastest. With many things, when trying to show a computer how to solve a problem, it helps to look at how you yourself solve the problem. Look at what you and your friends are doing to sort the elements. Can you translate this into a sorting algorithm for the computer?

If nothing else, you should leave this page with a newfound respect for Martha.


[Repeated Insertion]