Search results for binary-tree

168 votes
17 answers
2
40 votes
5 answers
4
What is the maximum height of any AVL-tree with $7$ nodes? Assume that the height of a tree with a single node is $0$.$2$$3$$4$$5$
48 votes
9 answers
8
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...
27 votes
5 answers
10
43 votes
6 answers
11
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$
29 votes
4 answers
13
57 votes
11 answers
15
In a binary tree, the number of internal nodes of degree $1$ is $5$, and the number of internal nodes of degree $2$ is $10$. The number of leaf nodes in the binary tree i...
42 votes
12 answers
16
Consider a binary tree T that has $200$ leaf nodes. Then the number of nodes in T that have exactly two children are ______.
54 votes
7 answers
17
A binary search tree is used to locate the number $43$. Which of the following probe sequences are possible and which are not? Explain.$\begin{array}{llllll} \text{(a)} ...
35 votes
12 answers
18
29 votes
3 answers
20
The maximum number of binary trees that can be formed with three unlabeled nodes is:$1$$5$$4$$3$