Observe the following trees and answer the indicated questions related to each tree.
Fill in the blanks.
Approximately how many comparisons will be required, in the worst case, to locate a value in a relatively balanced BST with 1000 nodes? Give a numeric answer. 1,000,000 nodes?
{ Script }
Why is the tree in (b) not an AVL-tree? Be specific.
Imagine that the node containing 60 has just been inserted in the tree below. Note that before the 60 was inserted it was an AVL-tree. Look at the nodes along the path from the root to where the 60 was inserted : 95, 75, 55, 65. a) Of the trees rooted at these four nodes, which one(s) is(are) not exactly balanced? b) Which non-balanced node on this path is "closest" to where the 60 was inserted? c) On which side (left or right) of 75 did the 60 go?
Give the right rotation at 75 to rebalance the tree below after 45 is inserted. Think about where the 65 should go after the rotation. Redraw the tree, on the printed answer sheet, after the insertion and right rotation.