COP 4531: Lecture 12

Learning objectives

After this class, you should be able to:

  1. Given an array of digits, and the range for the digits, show how counting sort will sort them.
  2. Given an array of numbers containing d digits in {0, 1, ..., k} each, show how radix sort will sort them.
  3. Derive the time complexity of counting sort and radix sort.
  4. Prove the correctness of radix sort and counting sort.

Reading assignment

  1. CLR: Sections 8.2 - 8.3.
  2. None. Prepare for the midterm.

Exercises and review questions


Last modified: 21 Feb 2007