Lecture 10

Learning objectives

After this class, you should be able to:

  1. Give algorithms to determine the minimum and maximum of a set of numbers, and determine the maximum number of comparisons performed.
  2. Given an array of n numbers, an integer i, 1 < i < n, and a sequence of random numbers in (0, 1), show the steps performed by the randomized expected time algorithm in determining the i th smallest element in the array.
  3. Derive the expected time complexity of the randomized selection algorithm discussed in class.

Reading assignment

  1. Lecture 10 slides.
  2. CLR: Chapter 9, up to (and including) section 9.2.
  3. CLR: Chapter 15, page 371.

Exercises and review questions


Last modified: 21 Aug 2015