- Draw the resulting BST after inserting the following strings (in the order provided) into an empty BST:
BS, AVL, TT, TTF, RB, Splay
- Draw the resulting BST after inserting the following strings (in the order provided) into an empty BST:
Splay, BS, RB, AVL, TT, TTF
Now insert TT
into the existing BST. What considerations are there?
- Draw the resulting BST after inserting the following strings (in the order provided) into an empty BST:
AVL, BS, RB, Splay, TT, TTF
- Given the following BST, draw the resulting tree after removing A.
Then, draw the tree after removing C.
- Given the following BST, draw the resulting tree after removing B.
Then, draw the tree after removing E.
- Write in the Big-Oh for the following operations on a BST.
|
Average-case |
Worst-case |
Retrieval
|
|
|
Insertion
|
|
|
Deletion
|
|
|
Traversal
|
|
|