Data Structures & AlgorithmsVery hardGATE CSE

What is the minimum number of nodes in an AVL tree of height 7, where a single-node tree has height 0?

  1. A. 33
  2. B. 64
  3. C. 54
  4. D. 88

Correct answer: C. 54

N(h) = N(h-1) + N(h-2) + 1 with N(0) = 1, N(1) = 2: 4, 7, 12, 20, 33, 54 for h = 2..7.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic