Close
Register
Close Window

DSA Coursenotes

Chapter 3 Week 4

Show Source |    | About   «  3.2. Clean Code   ::   Contents   ::   4.1. Project 2 Design  »

3.3. Binary Search Trees

3.3.1. Binary Search Trees

3.3.1.1. Binary Search Trees

3.3.1.2. BST as a Dictionary (1)

3.3.1.3. BST as a Dictionary (2)

3.3.1.4. BST findhelp

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

3.3.1.5. BST inserthelp

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

3.3.1.6. BST deletemax

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

3.3.1.7. BST removehelp

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

3.3.1.8. .

.

3.3.1.9. 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?

   «  3.2. Clean Code   ::   Contents   ::   4.1. Project 2 Design  »

nsf
Close Window