recategorized by
592 views

1 Answer

0 0 votes
For n Nodes ; For making Binary Search Tree. We should follow a property of BST i.e. its InOrder Traversal should be always in Sorted Order.

If we are having n keys ( being distinct ) then we can have only one Sorted Order.

To achieve this Sorted Order we can arranged node in (2n C n/ (n+1) ) ways to get the Binary Trees with Labelled Nodes.

So, we have ( 2n C n / ( n+1 ) ) BST .
Position:
Show:

Related questions

1 1 vote
1 1 answer
412
412 views
0 0 votes
1 1 answer
1.3k
1.3k views
talha hashim asked Aug 17, 2018
1,331 views
Consider the problem of construction of minimum cost binary search tree for a given set of 'n' identifiers with their respective probabilities.The time complexity of the ...
1 1 vote
1 1 answer
985
985 views
talha hashim asked Aug 17, 2018
985 views
Consider the following instance of OBST (Optimal Binary Search Tree) Problem.n=4;<a1,a2,a3,a4>=<do,if,int,while>P(1....4)=<3,3,1,1>; Q(0....4)=<2,3,1,1,1>The Cost of OBS...
0 0 votes
1 1 answer
987
987 views