Insertion Sort
One element at a time, into a sorted prefix that is always correct.
What this unit covers
Unit 4: Decrease and Conquer
- 1 Insertion SortOne element at a time, into a sorted prefix that is always correct. · 16 min
- 2 Topological SortingOrdering a set of tasks so that every prerequisite comes first. · 17 min
- 3 Binary Search and the Fake-Coin ProblemHalving the problem, and what happens when the halving has to be discovered. · 18 min
- 4 Generating Subsets and PermutationsEnumerating combinatorial objects, one reduction at a time. · 18 min