题目
题目

XLMC0202501 Topic 13 Quiz

多重下拉选择题

Consider the following tree:     This tree resulted from an operation on an AVL tree and is no longer an AVL tree.    The critical node is the node containing 42. What type of imbalance is is exhibited at the critical node?  RR   What type of rotation is needed to repair the imbalance? Left

题目图片
查看解析

查看解析

标准答案
Please login to view
思路分析
To tackle the problem, I’ll evaluate the imbalance at the critical node and then decide the appropriate rotation. Option RR: The notation RR stands for Right-Right imbalance. This occurs when the right subtree of a node is heavier, and the right child itself also has a heavier right subtree, creating a skew to the right. In the given tree, the node 42 has a much deeper right subtree (through 55, then 64, then 62/65) than its l......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!