Logo Data Structures and Algorithms with Object-Oriented Design Patterns in C++
next up previous contents index

Tree Traversals

 

The abstract Tree class provides default implementations for both the DepthFirstTraversal and BreadthFirstTraversal member functions. Both of these implementations call pure virtual member functions such as Key and Subtree. In effect, they are abstract algorithms . An abstract algorithm describes behavior in the absence of implementation!




next up previous contents index

Bruno Copyright © 1997 by Bruno R. Preiss, P.Eng. All rights reserved.