Lecture 7

Learning objectives

After this class, you should be able to:

  1. Given an array and a sequence of random numbers, show how randomized quicksort will sort the array.
  2. Analyze the worst case and average case time complexities of quicksort.
  3. Given a problem, choose a suitable sorting algorithm that will be efficient for that problem.

Reading assignment

  1. Lectures 6-9 slides.
  2. CLR: Sections 7.3 - 7.4.
  3. CLR: Chapter 8, page 192.

Exercises and review questions


Last modified: 21 Aug 2015