Lecture 23

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. Page 277-278: Floyd algorithm for initialization, class notes.

Exercises and review questions


Last modified: 5 Nov 2004