AVL Trees - University of Washington
AVL Trees
CSE 373 Data Structures
Readings
? Reading Chapter 10
> Section 10.2
AVL Trees
2
Binary Search Tree - Best Time
? All BST operations are O(d), where d is tree depth
? minimum d is d = log2N 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)
AVL Trees
3
Binary Search Tree - Worst Time
? Worst case running time is O(N)
> What happens when you Insert elements in ascending order?
? Insert: 2, 4, 6, 8, 10, 12 into an empty BST
> Problem: Lack of "balance":
? compare depths of left and right subtree
> Unbalanced degenerate tree
AVL Trees
4
Balanced and unbalanced BST
1
4
2
2
5
3
1
3
4
4 5
2
6
6
1
35
7
7
AVL Trees
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- visual acuity conversion chart healio
- overload relay heater tables allied electronics
- phy2049 exam 1 solutions fall 2012
- slope conversion tables
- normal distribution university of california los angeles
- example 0 equation of a line
- 2021 florida state softball overall statistics for florida
- fundamentals benefits atlas copco
- assignment 3 solutions university of california san diego
- t table area in one tail d f 0 005 0 01 0 025 0 05 0 10 1
Related searches
- university of washington hr jobs
- university of washington jobs listing
- university of washington human resources
- university of washington human resources dept
- university of washington baseball roster
- university of washington product management
- university of washington online mba
- university of washington printable map
- university of washington opioid taper
- university of washington opioid calculator
- university of washington program management
- university of washington graduate programs