UGC-NET Sep 2013 · Trees

MCQ · 2 marks · Problem PROG-DSTR-0012

The minimum number of nodes in a binary tree of depth \(d\) (root at level 0) is
  1. A
    \(2^{d}+1\)
  2. B
    \(2^{d+1}-1\)
  3. C
    \(d\)
  4. D
    \(d+1\)

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solution\[\boxed{\text{depth } d \text{ means levels } 0,1,\ldots,d \text{ each hold at least one node}}\]A single path, where every node has one child, has exactly one node per level: \(d+1\) nodes. Fewer is impossible.(B) \(2^{d+1}-1\) is the maximum (a perfect tree). (C) \(d\) would need the root at level 1.The official UGC NET key was C, which counts levels from 1.Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com