

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Recursive definitions and proofs for various mathematical and graph theory problems as presented in cse 260 homework 9. Topics include proving divisibility, recursively defining sequences, and using mathematical induction to establish identities. Additionally, the document covers the recursive definition of rooted trees and a recursive function to find the height of a binary tree.
Typology: Assignments
1 / 2
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