题目
题目
单项选择题

AVL_BF_4 Refer to the AVL Tree shown in image below. Balance factor of 25 is ___.

选项
A.-1
B.0
C.-2
D.1
E.2
查看解析

查看解析

标准答案
Please login to view
思路分析
When evaluating the balance factor in an AVL tree, we recall that the balance factor (BF) of a node is defined as BF = height(left subtree) − height(right subtree). With this in mind, we examine the node labeled 25 in the given AVL tree image. Option -1: This indicates the right subtree of node 25 is one lev......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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