Lecture 32

Learning objectives

After this class, you should be able to:

  1. Define some terms assocated with sorting, such as: (i) in-place sorting, (ii) stable sorting, and (iii) external sorting.
  2. Write code to sort using the STLsort algorithm, and identify the feature containers must have in order for them to be used with this algorithm.
  3. Use a heap to sort an array of data in-place.

Reading assignment

  1. Section 7, sections 7.1, 7.2.2, 7.5.
  2. Lecture: Sorting.

Exercises and review questions


Last modified: 14 Nov 2011