edited by
5,831 views
5 votes
5 votes

The minimum height of an AVL tree with $n$ nodes is

  1. $\text{Ceil } (\log_2(n+1))$
  2. $1.44\ \log_2n$
  3. $\text{Floor } (\log_2(n+1))$
  4. $1.64\ \log_2n$
edited by

3 Answers

3 votes
3 votes
$\underline{\textbf{Answer:}\Rightarrow}\;\textbf{(c)}$

$\text{Minimum height} =\color{magenta}{\mathbf{\bigg\lfloor  \log_2 \left ( n + 1  \right  )\bigg \rfloor}}$

$\text{Maximum height} =\color{blue}{\mathbf{1.44\log_2n}}$
edited by
0 votes
0 votes

If there are n nodes in AVL tree, minimum height of AVL tree is floor(log2n). Option C

Explanation : Please refer the link below

https://www.geeksforgeeks.org/practice-questions-height-balancedavl-tree/

0 votes
0 votes
As we know there are minimum of 4 node in height 2 in avo tree because minimum height is h(no of node-1) and h(no of node -2)

So putting n=4 in all option we will obtain h=2 in floor(log2(n+1))
Answer:

Related questions

2 votes
2 votes
3 answers
1
6 votes
6 votes
3 answers
2
Satbir asked Jan 13, 2020
3,331 views
Of the following, which best approximates the ratio of the number of nonterminal nodes in the total number of nodes in a complete $K$-ary tree of depth $N$ ?$1/N$$N-1/N$$...
4 votes
4 votes
3 answers
3
Satbir asked Jan 13, 2020
2,953 views
Convert the pre-fix expression to in-fix $- ^{\ast} +ABC^{\ast} – DE+FG$$(A-B)^{\ast}C+(D^{\ast}E)-(F+G)$$(A+B)^{\ast}C-(D-E)^{\ast}(F+G)$$(A+B-C)^{\ast}(D-E)^{\ast}(F+...