GATE CS 2011 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0164

We are given a set of n distinct elements and an unlabeled binary tree with n nodes. In how many ways can we populate the tree with the given set so that it becomes a binary search tree?
  1. A
    0
  2. B
    1
  3. C
    n!
  4. D
    \(\frac{1} {n+1} .^{2n}C_n\)

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/2131/gate2011-29

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