HCU PHD CS JUNE 2021
January 20, 2025
HCU PHD CS DEC 2020
January 21, 2025
HCU PHD CS JUNE 2021
January 20, 2025
HCU PHD CS DEC 2020
January 21, 2025

GATE 2011

Question 40

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?

A
0
B
1
C
n!
D
Question 40 Explanation: 
The number of ways to populate the given unlabeled binary tree with n distinct elements such that it becomes a binary search tree (BST) is given by the nth Catalan number.
Correct Answer: D
Question 40 Explanation: 
The number of ways to populate the given unlabeled binary tree with n distinct elements such that it becomes a binary search tree (BST) is given by the nth Catalan number.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x