Close
Register
Close Window

CSE101P

Chapter 10 Chapter7: Storing Dynamic Data for Efficient Search (BST and AVL)

| About   «  10.5. Lab 14 BST   ::   Contents   ::   10.7. Binary Tree Chapter Summary  »

10.6. Binary Search Trees

10.6.1. Binary Search Trees

10.6.1.1. Binary Search Trees

10.6.1.2. BST as a Dictionary (1)

10.6.1.3. BST as a Dictionary (2)

10.6.1.4. BST findhelp

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

10.6.1.5. BST inserthelp

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

10.6.1.6. BST deletemax

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

10.6.1.7. BST removehelp

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

10.6.1.8. .

.

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

   «  10.5. Lab 14 BST   ::   Contents   ::   10.7. Binary Tree Chapter Summary  »

Close Window