Lecture Notes for CS 512, Algorithm Design
Binary Search Trees - 2 February 2000
- collections of entity-value pairs
- priority queues, dictionaries
- operations: search, min, max, predecessor, successor, insert, and
delete
- trees - nodes with left and right children, value, and parent
- bst property: n.left.value <= n.value <= n.right.value
- tree walks - preorder, inorder, postorder
- bst-search()
- bst-minimum()
- bst-maximum()
- bst-successor()
- bst-predecessor()
- bst-insert()
- bst-delete()
This page last modified on 2 February 2000.