GATE DA 2024 · Trees

MSQ · 2 marks · Problem PROG-DSTR-0059

Let \(H, I, L\), and \(N\) represent height, number of internal nodes, number of leaf nodes, and the total number of nodes respectively in a rooted binary tree. Which of the following statements is/are always TRUE?
  1. A
    \(L \leq I+1\)
  2. B
    \(H+1 \leq N \leq 2^{H+1}-1\)
  3. C
    \(H \leq I \leq 2^{H}-1\)
  4. D
    \(H \leq L \leq 2^{H-1}\)

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

Show the worked solutionOfficial GATE Answer Key: A, B, C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/422920/gate-ds%26ai-2024-question-42

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