

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Ignore the proofs by mathematical induction part of the problems.
(a) Calculate bn for n = 3, 4 , 5 (b) Show by using the second principle (strong) of mathematical induc- tion that bn ≥ 2 bn− 2 for n ≥ 3
(a) Basis Step: A single vertex is a rooted tree. (b) D Recursive Step: Suppose that T 1 , T 2 , ...Tn are disjoint rooted trees with roots r 1 , r 2 , ..., rn respectively. Then the graph formed by starting with a root r, which is not in any of the rooted trees T 1 , T 2 , ...Tn , and adding an edge from r to each of the vertices r 1 , r 2 , ..., rn, is also a rooted tree. Construct the following tree using the above definition. Show all the steps of your construction.
Function f(T: Tree) :integer begin if T =nil then val=- else val=1+Max(f(T->Left), f(T->right)); return(val); end