if T(n) is the number of different binary search trees on n distinct elements then
(source: imgsafe.org)
what is the value for x please explain.
if T(n) is the number of different binary search trees on n distinct elements then
(source: imgsafe.org)
what is the value for x please explain.
Any element can be the root of the tree. The rest of the elements will go in the left or right sub-tree depending on whether they are smaller or larger than that element.
Those sub-trees are also binary search trees, so based on this you can write a recurrence relation.
The rest is left as an execercise, as this is clearly homework.