Question 11Asked in DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2

The height of a tree is the length of the longest path from root to leaf. What is the maximum and minimum number of nodes in a binary tree of height 'n'?

  1. A2ⁿ⁺¹ − 1, n + 1
  2. B2ⁿ − 1, n
  3. C2ⁿ, n + 1
  4. D2ⁿ⁻¹ − 1, n
Show answerHide answer

Correct answer: (A) 2ⁿ⁺¹ − 1, n + 1

Explanation

A binary tree of height n has at most 1 + 2 + ... + 2ⁿ = 2ⁿ⁺¹ − 1 nodes (completely full) and at least n + 1 nodes (one node per level, a chain).

From DSSSB TGT Computer Science PYQ (Technical), 7 Aug 2021, Shift 2

This is question 11 of DSSSB TGT Computer Science PYQ (Technical), 7 Aug 2021, Shift 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.