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

Binary Search Trees

The class BinarySearchTree introduced in Program gif represents binary search trees. Since binary trees and binary search trees are topologically similar, the BinarySearchTree class extends the BinaryTree introduced in Program gif. In addition, because it represents search trees, the BinarySearchTree class implements the SearchTree interface defined in Program gif.

   program18604
Program: BinarySearchTree class.




next up previous contents index

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