 |  Introduction to Algorithms, 2/e Thomas H. Cormen,
Dartmouth College Charles E. Leiserson,
Massachusetts Institute of Technology Ronald L. Rivest,
Massachusetts Institute of Technology Clifford Stein,
Columbia University
Binary Search Trees
Chapter ObjectivesSearch trees - Data structures that support many dynamic-set operations.
- Can be used as both a dictionary and as a priority queue.
- Basic operations take time proportional to the height of the tree.
- For complete binary tree with n nodes: worst case Θ(lg n).
- For linear chain of n nodes: worst case Θ(n).
- Different types of search trees include binary search trees, red-black trees
(covered in Chapter 13), and B-trees (covered in Chapter 18).
We will cover binary search trees, tree walks, and operations on binary search
trees.
|