COP 4531: Lecture 12
Learning objectives
After this class, you should be able to:
- Given an array of digits, and the range for the digits, show how counting sort will sort them.
- Given an array of numbers containing
d
digits in{0, 1, ..., k}
each, show how radix sort will sort them.- Derive the time complexity of counting sort and radix sort.
- Prove the correctness of radix sort and counting sort.
Reading assignment
- CLR: Sections 8.2 - 8.3.
- None. Prepare for the midterm.
Exercises and review questions
- Questions on current lecture's material
- Exercise 8.2-1.
- Exercise 8.2-4.
- Exercise 8.3-1.
- Exercise 8.3-2.
- Exercise 8.3-3.
- Questions on next lecture's material
- None.