Binary-Search-Tree Definition

An n-node binary tree.

Not necessarily complete.

All nodes j (other than leaves) satisfy the ``binary-search-tree property'': tex2html_wrap_inline98 . Here, i is in j's left subtree, and k is j's right subtree.

In terms of the array representation: tex2html_wrap_inline108 .

Example...

Note: not enough that the property just holds for immediate children. Must hold for the entire family line.


next up previous
Next: Some Properties of Binary Up: BINARY SEARCH TREES Previous: BINARY SEARCH TREES