Recent questions tagged binary-tree

42 votes
5 answers
302
21 votes
3 answers
304
Which of the following sequences denotes the post order traversal sequence of the below tree?$f\; e\; g\; c\; d\; b\; a$$g\; c\; b\; d\; a\; f\; e$$g\; c\; d\; b\; f\; e\...
29 votes
3 answers
305
In the balanced binary tree in the below figure, how many nodes will become unbalanced when a node is inserted as a child of the node “g”?$1$$3$$7$$8$
25 votes
3 answers
306
What is the number of binary trees with $3$ nodes which when traversed in post-order give the sequence $A, B, C ?$ Draw all these binary trees.
43 votes
6 answers
307
A binary tree $T$ has $n$ leaf nodes. The number of nodes of degree $2$ in $T$ is$\log_2 n$$n-1$$n$$2^n$
19 votes
2 answers
309
Prove by the principal of mathematical induction that for any binary tree, in which every non-leaf node has $2$-descendants, the number of leaves in the tree is one more ...
57 votes
12 answers
311
In a binary tree with $n$ nodes, every node has an odd number of descendants. Every node is considered to be its own descendant. What is the number of nodes in the tree ...
48 votes
9 answers
313
We are given a set of $n$ distinct elements and an unlabeled binary tree with $n$ nodes. In how many ways can we populate the tree with the given set so that it becomes a...
90 votes
11 answers
314
20 votes
1 answer
315
Draw the binary tree with node labels $\text{a, b, c, d, e, f and g}$ for which the inorder and postorder traversals result in the following sequences:Inorder: $\text{a f...
29 votes
3 answers
318
The maximum number of binary trees that can be formed with three unlabeled nodes is:$1$$5$$4$$3$
26 votes
4 answers
319
The height of a binary tree is the maximum number of edges in any root to leaf path. The maximum number of nodes in a binary tree of height $h$ is:$2^h -1$$2^{h-1} -1$$2^...
20 votes
1 answer
323
Draw all binary trees having exactly three nodes labeled $A, B$ and $C$ on which preorder traversal gives the sequence $C, B, A$.
48 votes
4 answers
325
33 votes
8 answers
326
25 votes
3 answers
327
Consider the binary tree in the figure below:What structure is represented by the binary tree?
44 votes
2 answers
328
20 votes
5 answers
329
If the binary tree in figure is traversed in inorder, then the order in which the nodes will be visited is ______