Searching and sorting
Labs
Binary search
20 minHow does a computer find one number among a million with only 20 comparisons? Play the algorithm yourself – and with every mistake, see what your decision would cause.
- Algorithms
- Searching
- Running time
Insertion sort
20 minYou have a hand of unsorted cards. Where does the next card go, and which cards have to move to make room?
- Sorting algorithms
- Lists
- Stability