retagged by
917 views
8 votes
8 votes

Q.Consider a four labeled 1, 2, 3, 4. The number of distinct binary tree are possible such that whose inorder traversal is 1, 2, 3, 4 are _________


Answer must be 14 right ?

retagged by

1 Answer

3 votes
3 votes
No. of Binary Trees possible with given Order(Inorder, Preorder, or Postorder) is given by $\binom{2n}{n}/(n+1)$

So Yes Answer is 14

Related questions

0 votes
0 votes
1 answer
1
2 votes
2 votes
3 answers
3
Parshu gate asked Nov 13, 2017
2,974 views
For a binary tree T,preorder traversal yields: 11,8,6,4,7,10,19,43,31,29,37,49 andinorder traversal yields: 4,6,7,8,10,11,19,29,31,37,43,49The height of the T is _____...
2 votes
2 votes
2 answers
4
GO Classes asked Feb 4
322 views
Consider a binary tree. Among the following traversal combinations, which of them can uniquely construct the tree?Inorder + PreorderPreorder + PostorderOnly InorderInorde...