3.Binary Search Treesยง

BST as a Dictionary (1)

BST as a Dictionary (2)

BST findhelp

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

BST inserthelp

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

BST deletemax

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

BST removehelp

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

.

.

BST Analysis

Find: \(O(d)\)

Insert: \(O(d)\)

Delete: \(O(d)\)

\(d =\) depth of the tree

\(d\) is \(O(\log n)\) if the tree is balanced.

What is the worst case cost? When?