Recent questions tagged binary-tree

0 0 votes
2 2 answers
1.0k
1.0k views
Suppose a binary search tree has been constructed from the following sequence of numbers in the order in which they arrive : $6, 2, 10, 1, 5, 7, 11, 3, 9, 4, 8.$ Consider...
0 0 votes
1 1 answer
642
642 views
When the left sub-tree of the tree is one level higher than that of the right sub-tree, then the balance factor is _____________ .$0$$1$$-1$$2$
0 0 votes
1 1 answer
476
476 views
Total number of nodes at the $\text{n}^{th}$ level of a full binary tree can be given as _______________ .$\text{2n+1}$$\text{2n}^{2}$$2^\text{n}$$\text{2n-1}$
1 1 vote
1 answers 1 answer
2.3k
2.3k views
Suppose there are $11$ nodes in a binary tree. Find the number of unlabeled binary trees if the number of nodes either in the left sub tree or in the right sub tree is di...
0 0 votes
1 1 answer
569
569 views
0 0 votes
0 0 answers
468
468 views
A binary tree of depth $\text{K}$ is called a full binary tree of depth $\text{K},$ if it has exactly _____________ nodes.$\text{K}$$2^{\text{k}}$$2^{\text{k}} – 1$$2^{\t...
0 0 votes
0 0 answers
644
644 views
Let $\text{B}_{n}$ denote the number of full binary trees with $n$ vertices. Then a recurrence relation for $\text{B}_{n}$ is $:$$\text{B}_{n} = \text{B}_{n-1} + \text{O}...
56 56 votes
5 answers 5 answers
24.9k
24.9k views
Consider a complete binary tree with $7$ nodes. Let $A$ denote the set of first $3$ elements obtained by performing Breadth-First Search $\text{(BFS)}$ starting from the ...
1 1 vote
3 3 answers
4.6k
4.6k views
A complete $n$-ary tree is a tree in which each node has $n$ children or no children. Let $I$ be the number of internal nodes and $L$ be the number of leaves in a complet...
3 3 votes
2 2 answers
1.3k
1.3k views
A full binary tree with $n$ non-leaf nodes contains$\log_ 2 n$ nodes$n+1$ nodes$2n$ nodes$2n+1$ nodes
2 2 votes
1 1 answer
1.4k
1.4k views
The height of a binary tree is the maximum number of edges in any root to leaf path. The maximum number number of nodes in a binary tree of height $h$ is $2^{h}$$2^{h-1} ...
2 2 votes
2 2 answers
1.5k
1.5k views
The number of possible binary trees with $4$ nodes is$12$$13$$14$$15$
2 2 votes
2 2 answers
3.9k
3.9k views
In a full binary tree number of nodes is $63$ then the height of the tree is :$2$$4$$3$$6$
2 2 votes
1 1 answer
1.8k
1.8k views
Traversing a binary tree first root and then left and right subtrees called ______ traversal.postorder.preorder.inorder.none of these.
4 4 votes
1 1 answer
2.6k
2.6k views
The number of unused pointers in a complete binary tree of depth $5$ is:$4$$8$$16$$32$
1 1 vote
5 5 answers
4.6k
4.6k views
Which of the following need not be a binary tree?Search treeHeapAVL treeB tree