Lecture 17

Learning objectives

After this class, you should be able to:

  1. Given a sequence of n integers, a number k in [1,n], and a sequence of random numbers, show the steps involved in applying the randomized selection algorithm discussed in class to find the k th smallest of these numbers.
  2. Analyze the time complexity of the randomized selection algorithm discussed in class.

Reading assignment

  1. Class notes on randomized selection.
  2. Review binary search trees and balanced binary search trees (CLR: Chapters 12 and 13).

Exercises and review questions


Last modified: 30 Oct 2006