Lecture 12

Learning objectives

After this class, you should be able to:

  1. Define tree terminology, such as root, parent, child, sibling, ancestor, descendent, vertex, edge, path, length of a path, leaf, height, and depth.
  2. Given a tree, show the order in which its vertices are visited by each of the following traversals: (i) pre-order, (ii) post-order, and (iii) level-order.

Reading assignment

  1. Section 4.1.
  2. Lecture: Trees: Part 1.

Exercises and review questions


Last modified: 26 Sep 2011