aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Data structure
  • Calculate the minimum number of nodes in AVL tree where h...
Multiple choice

Calculate the minimum number of nodes in AVL tree where height (H) is 8 and root at level 1.

  1. 56

  2. 54

  3. 58

  4. 64

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

N(H min)=1+N(H-1)+N(H-2). For N(1)=1, for N(2)=2 , for N(3)= 1 + N(2 )+ N(1), it will become 1+2+1 = 4 and so on. So for N(8) it will be 54 and answer 54 is correct.  

Keep practicing — related questions

  • What is the maximum height of any AVL-tree with 7 nodes? Assume that the height of a tree with a single nod...
  • What is the maximum height of any AVL-tree with 7 nodes? Assume that the height of a tree with a single nod...
  • For height H and root at level 0, how many number of nodes will be there in a binary tree?
  • For height H and root at level 1, how many number of nodes will be there in a binary tree?
  • In AVL tree, the height of two child sub trees of any node differ by
  • If the keys '1, 2, 3, 4 and 5' are inserted in order into initially empty a AVL tree, the height of the tre...
  • If the keys '1, 2, 3, 4 and 5' are inserted in order into initially empty a AVL tree, the root node is
  • The number of leaf nodes in a rooted tree of n nodes, with each node having 0 or 3 children is:
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy