edited by
637 views
3 votes
3 votes

The height of a rooted tree is the maximum height of any leaf. The length of the unique path from a leaf of the tree to the root is, by definition, the height of that leaf. A rooted tree in which each non-leaf vertex has at most two children is called a binary tree. If each non-leaf vertex has exactly two children, the tree is called a full binary tree.
Consider the following statements. Which of the following is true?

  1. If a binary tree has $\text{L}$ leaves and height $h$ then $\text{L} \leq 2^h$
  2. If a binary tree has $\text{L}$ leaves then the maximum value of height $h$ is $\text{L}^{\text{L}}.$
  3. Given a full binary tree with $\text{L}$ leaves, the maximum height $h = L-1.$
  4. It is possible to have a binary tree with $35$ leaves and height $100.$
edited by

1 Answer

4 votes
4 votes



Knowing the number of leaves does not bound the height of a tree — it can be arbitrarily large. So a binary tree with $35$ leaves and height $100$ is possible.

edited by
Answer:

Related questions