GATE IT 2008 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0184

A binary tree with n>1 nodes has \(n_{1}\), \(n_{2}\) and \(n_{3}\) nodes of degree one, two and three respectively. The degree of a node is defined as the number of its neighbors.\(n_{3}\) can be expressed as
  1. A
    \(n_{1}+n_{2}-1\)
  2. B
    \(n_{1}-2\)
  3. C
    \({\left[\left(\left(n_{1}+n_{2}\right) / 2\right)\right]}\)
  4. D
    \(n_{2}-1\)

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

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/3390/gate2008-it-76

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