in GATE retagged by
526 views
0 votes
0 votes

Which of these statements is not true about an $AVL$ tree $T$ containing $n$ nodes?

  1. Rotations may be required during key insertion to keep $T$ balanced.
  2. The height of $T$ cannot exceed $1.5$ * $\log 2^{n}$ . And  It is possible to insert nodes into $T$ in $O$$\left ( \lg n \right )$ asymptotic algorithmic complexity.
  3. The number of interior nodes in $T$ cannot exceed the number of leaves in $T$.
  4. If each node in $T$ is augmented with an integer showing the size of that node’s sub-tree, then $T$ can be used to perform order statistic searches in $O$$\left ( \lg n \right )$ asymptotic algorithmic complexity.
in GATE retagged by
by
526 views

1 Answer

2 votes
2 votes
Best answer

C   The number of interior nodes in T can exceed the number of leaves in T .

 

edited by

3 Comments

i could not understand

interior nodes always less than leaves so is in statement thenwhy this is false?
2
2
Leaf nodes = Internal nodes*(n-1) +1

is valid for complete n-ary tree only, where each node has either 0 or n children
2
2
here, root node is also considered as an internal node .
0
0
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

64.3k questions

77.9k answers

244k comments

80.0k users