Suppose we have built a (balanced) AVL tree by inserting the keys 12, 7, 9, 17, 14 in this order. Suppose we insert anot
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Suppose we have built a (balanced) AVL tree by inserting the keys 12, 7, 9, 17, 14 in this order. Suppose we insert anot
questions. Note: for all answers, please use no spaces, and for Answer 3, please use R or L or LR or RL. The imbalanced node to be repaired in the tree contains key The balance factor of this key is The required rotation is the rotation.
Suppose we have built a (balanced) AVL tree by inserting the keys 12, 7, 9, 17, 14 in this order. Suppose we insert another key 16 into the tree, answer the following