Saint Louis University |
Computer Science 2100
|
Dept. of Math & Computer Science |
Topic: Balanced Search Trees
Related Reading: Ch. 10.1, 10.2
Due:
Friday, 4 December 2015, 10:00am
Please make sure you adhere to the policies on academic integrity.
Using a standard binary search tree (i.e., without any rebalancing operations), draw the final tree that results after the following sequence of insertions: 30, 40, 24, 58, 48, 26, 11, 13.
Draw the final AVL tree that results after inserting the sequence of
elements
Just above each node of your drawing, provide an annotation of the height of the subtree rooted at that node, using a convention that a node with two null children has height 1 (i.e., in this example, immediately after 10 is inserted, the root of the tree has height 1).
Continuing where you left off with the preceding problem, show
the final result after the additional insertions
Just above each node of your drawing, provide an annotation of the height of the subtree rooted at that node, using a convention that a node with two null children has height 1.
Draw the AVL tree that results from the deletion of value 15 from the following AVL tree
Just above each node of your drawing, provide an annotation of the height of the subtree rooted at that node, using a convention that a node with two null children has height 1.