recategorized by
362 views

1 Answer

0 votes
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 .

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
1 answer
2
talha hashim asked Aug 17, 2018
621 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 votes
0 votes
1 answer
3