Skip to content
Official PYQ · 1998

GATE CS 1998 Q1.24 — Trees

Explain with AI

Which of the following statements is false?

Select all correct options
View worked solution

Answer: B;C

We need to identify the false statements among the given options.

  • Statement A: A tree with nn nodes has (n−1)(n - 1) edges.
    Status: TRUE. By definition, any connected acyclic graph (tree) with nn vertices contains exactly n−1n - 1 edges.
  • Statement B: A labeled rooted binary tree can be uniquely constructed given its postorder and preorder traversal results.
    Status: FALSE. Preorder and postorder traversals are not sufficient to uniquely reconstruct a binary tree. For example, consider the following two distinct binary trees:
    1. Tree 1: Root AA with left child BB.
    2. Tree 2: Root AA with right child BB.
    Both trees have the preorder traversal [A,B][A, B] and postorder traversal [B,A][B, A]. Thus, the reconstruction is not unique.
  • Statement C: A complete binary tree with nn internal nodes has (n+1)(n + 1) leaves.
    Status: FALSE. This property holds for a strict (or full) binary tree where every internal node has exactly 2 children. However, a complete binary tree can have nodes with only 1 child.
    For example, consider a complete binary tree with 44 nodes:
    • Root 11 has children 22 and 33.
    • Node 22 has a left child 44.
    Here, the internal nodes are 11 and 22 (n=2n = 2), and the leaves are 33 and 44 (number of leaves =2= 2). Since 2≠n+12 \neq n + 1, the statement is false.
  • Statement D: The maximum number of nodes in a binary tree of height hh is 2h+1−12^{h+1} - 1.
    Status: TRUE. Under the standard definition where the height of a single-node tree is 00, the maximum number of nodes at level ii is 2i2^i. Summing this from level 00 to hh gives: ∑i=0h2i=2h+1−1\sum_{i=0}^{h} 2^i = 2^{h+1} - 1

Since the question asks for the false statements, the correct options are B and C.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Trees questions