Lecture 12
Learning objectives
After this class, you should be able to:
- Define tree terminology, such as root, parent, child, sibling, ancestor, descendent, vertex, edge, path, length of a path, leaf, height, and depth.
- 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
- Section 4.1.
- Lecture: Trees: Part 1.
Exercises and review questions
- Exercises and review questions on current lecture's material
- Exercise 4.1.
- Exercise 4.2.
- Exercise 4.3.
- Give the order in which vertices of the tree in figure 4.73 are visited by each of the following traversals: (i) pre-order, (ii) post-order, and (iii) level-order.
- Questions on next lecture's material
- None.
Last modified: 26 Sep 2011