Lecture 13

Learning objectives

After this class, you should be able to:

  1. Define a binary tree and a complete binary tree.
  2. Show how the vertices of a binary tree can be represented in C++.
  3. Show how a complete binary tree can be represented using an array.
  4. Derive the relationship between the number of vertices and the height of a binary tree.
  5. Given a binary tree, give the order in which vertices of the tree are visited by an inorder traversal.

Reading assignment

  1. Section 4.2.
  2. Lecture: Trees: Part 2 -- Binary trees.
  3. Page 124.

Exercises and review questions


Last modified: 27 Sep 2011