Skip to content

UGC NET CS 2020Discrete Structures and Optimization › Graph TheoryVerified

UGC NET CS 2020 PYQ: A complete $n$-ary tree is a tree in which each node has $n$ children or no children. Let $I$ be the number…

A complete $n$-ary tree is a tree in which each node has $n$ children or no children. Let $I$ be the number of internal nodes and $L$ be the number of leaves in a complete $n$-ary tree. If $L=41$, and $I=10$, what is the value of $n$?

  1. A
    3
  2. B
    4
  3. C
    5
    Correct answer
  4. D
    6

Answer

(C) 5

Approach

Use the relation between internal nodes and leaves in a complete n-ary tree: $L = (n-1)I + 1$.

Reviewed by UGC IQ Editorial Team.