SUNY Geneseo Department of Computer Science
{Date}
CSci 141, Fall 2004
Prof. Doug Baldwin
Hand out Lab 10
e.g., how long does it take to compute the length of a list?
See section 9.3 in text
Developed a Program that does such timing
Inherent +/- 1 count error in discrete time measurements
Reading summary -- Sections 13.1 and 13.2
Formal definition of "binary tree"
Binary tree messages?
Print all the items in a binary tree
// In some subclass of BinaryTree
void print() {
if this.isEmpty()
do nothing
else
print this.getRoot()
this.getLeft().print()
this.getRight().print()
Trees and searching
Read Sections 13.3.1 and 13.3.2