Although not an assignment, just out of curiosity; I am trying to compare a two cases
- A scenario where I pick a tree out of the set of possible binary search trees on the keys $1,2,\ldots,n$, with each tree equally likely (with a probability say, $p(T)$) and\
- Generating a binary search tree by inserting the numbers $1,2,\ldots,n$ in random order with a probability, $q(T)$ of obtaining the tree $T$ in this way.
I can infer that $p(T)$ would not be necessarily equal to $q(T)$ but I can't seem to explain why. An example would help.