AVL Trees: CSE 373 Data Structures
AVL Trees: CSE 373 Data Structures
CSE 373
Data Structures
Lecture 8
12/26/03 AVL Trees - Lecture 8 2
Readings
Reading
Section 4.4,
12/26/03 AVL Trees - Lecture 8 3
Binary Search Tree - Best
Time
All BST operations are O(d), where d is
tree depth
minimum d is for a binary tree
with N nodes
What is the best case tree?
What is the worst case tree?
So, best case running time of BST
operations is O(log N)
N log d
2