Lecture 30

Learning objectives

After this class, you should be able to:

  1. Given an array of data, organize them as a heap using the O(n) time algorithm discussed in class.
  2. Prove that the heap initialization algorithm discussed in class has time complexity O(n).

Reading assignment

  1. Section 6, section 6.3.4.
  2. Lecture: Priority queues.

Exercises and review questions


Last modified: 14 Nov 2011