edited by
269 views
0 votes
0 votes

Let $\text{T(n)}$ be the number of different binary search trees on $\text{n}$ distinct elements-then $\text{T(n)} = \displaystyle{\sum_{k=1}^{n}} \text{T(K-1)} \; T(x)$ where $x$ is:

  1. $\text{ n – k + 1}$
  2. $\text{ n – k}$
  3. $\text{ n – k – 1}$
  4. $\text{ n – k – 2}$
edited by

1 Answer

0 votes
0 votes

BST(N) = $\; \sum_{0}^{n-1}$BST(L) .BST(R) ; where L is node in left subtree and R is node in right Subtree. And L+R = N-1;

using this above equation x = n-1-k+1 = n-k;

so answer of this question is B) n-k

Related questions

1 votes
1 votes
1 answer
1
soujanyareddy13 asked Jan 9, 2022
947 views
Let the predicates $D(x,y)$ mean “team $x$ defeated team $y$” and $P(x,y)$ mean “team $x$ has played team $y$”. The quantified formula for the statement that ther...
0 votes
0 votes
1 answer
2
soujanyareddy13 asked Jan 9, 2022
604 views
The File Transfer Protocol is built on ______________.data centric architectureservice-oriented architectureclient server architectureconnection-oriented architecture
0 votes
0 votes
1 answer
3
soujanyareddy13 asked Jan 9, 2022
529 views
More than one word is put in one cache block to:exploit the temporal locality of reference in a programexploit the spatial locality of reference in a programreduce the mi...
0 votes
0 votes
1 answer
4
soujanyareddy13 asked Jan 9, 2022
446 views
In $\text{DPSK}$ technique, the technique used to encode bits is :$\text{AMI}$Differential codeUnipolar $\text{RZ}$ formatManchester formate