Question 12.2.1: Find the minimal and maximal number of vertices in a balance......

Find the minimal and maximal number of vertices in a balanced tree of height n.

Step-by-Step
The 'Blue Check Mark' means that this solution was answered by an expert.
Learn more on how do we answer questions.

The maximal number of vertices is equal to 2^{n+1} – 1. If m_n is the minimal number of vertices, then m_{n+2} = 1 +m_n + m_{n+1}. An easy induction argument gives m_n = Φ_{n+3} – 1 (where Φ_{n}  is the n-th Fibonacci number: Φ_{1}=1 , and Φ_{2}=1 , and Φ_{n+2}=Φ_{n}+Φ_{n+1}).

Related Answered Questions

Question: 12.2.2

Verified Answer:

By induction over n, we prove that Φ_{n+2} ...
Question: 12.1.3

Verified Answer:

val [null]  := t; x := root ; while t <> val...
Question: 12.1.2

Verified Answer:

if root = null then begin ..t is not in the tree e...