1,287 views
1 1 vote
We are given a set of n distinct elements and an unlabelled binary tree with n nodes.how many ways can we populate the tree with the given set so that it becomes a BST

0

1

n!

2nCn / (n+1)

1 Answer

0 0 votes
The structure of the Binary tree is given.We cant change that.So only 1 way to organise the BST

so 1 Should be the correct answer
Position:
Show:

Related questions

3 3 votes
5 5 answers
3.3k
3.3k views
srestha asked May 22, 2019
3,312 views
Consider the following function height, to which pointer to the root node of a binary tree shown below is passedNote that max(a,b) defined by #define max(a,b) (a>b)?a:b.i...
4 4 votes
5 5 answers
9.3k
9.3k views
sripo asked Jan 16, 2019
9,325 views
Let us there are n nodes which are labelled.Then the number of trees possible is given by the Catalan Number i.e $\binom{2n}{n} / (n+1)$Then the binary search trees possi...
0 0 votes
0 0 answers
1.4k
1.4k views
1 1 vote
2 answers 2 answers
1.8k
1.8k views