COP 4531: Lecture 14

Learning objectives

After this class, you should be able to:

  1. Give algorithms to determine the minimum and maximum of a set if 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. CLR: Chapter 9, up to (and including) section 9.2.
  2. None.

Exercises and review questions


Last modified: 28 Feb 2007