Lecture 15

Learning objectives

After this class, you should be able to:

  1. Given a set of activities, their start times, and their end times, give an optimal solution to the activity selection problem.
  2. Given a problem, give an optimal substructure property, prove this property, construct a greedy algorithm, prove its correctness and optimality, and derive the time complexity of your algorithm.
  3. Given a greedy strategy, give a counterexample to show that it is not optimal.

Reading assignment

  1. Lectures 15-17 slides.
  2. CLR: Sections 16.1 - 16.2.
  3. CLR: Section 16.3, pages 428-429.

Exercises and review questions


Last modified: 15 Oct 2015