All apps
Sorting in the dark
About this app
Eight wooden tiles lie face down in a tray, the numbers are on the underside. Tap two to turn them over: that is one comparison; then swap them or put them back. A mechanical counter counts comparisons and swaps. “Done” turns everything over and puts your count next to Insertion, Bubble, Selection, Merge, Heap and Quicksort on the same numbers, along with the lower bound of 16 comparisons for 8 tiles. The five algorithms that need no second list also run step by step on the tiles. Your own numbers (4 to 12), templates and three tasks; in strict mode a comparison only shows which tile is larger.
Subject: Computer science
More from Computer science
- Ackermann function
- Call Tree
- Elevator simulator
- Binary workshop
- Binary versus linear search
- The Collatz problem
- Inside a CPU
- Swap the inside
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps