Question: CSCI - 3 3 1 0 Homework 9 - 1 0 Problem 1 . Consider ( G = ( V , E )

CSCI-3310 Homework 9-10
Problem 1. Consider \( G=(V, E)\) for figure 1 where \( V \) is the vertex/nodes and \( E \) is the edges. (Hint: for example, for \( V=\{a, b\}\) and the edge would be \( E=\left\{e_{a b}\right\}\).)
(1) Write down set of \( V \) and \( E \).
(2) Is \( G \) a tree if \( f \) is a root? If yes, write down the value of \( m \) for m-ary tree. If no, explain why.
(3) What is the height of the tree if \( f \) is root?
(4) Suppose the current height of the tree with root \( f \) is \( H \). You want to insert a node \( j \) to increase the maximum height. Where would you insert it? Draw it out.
Figure 2: Graph for Problem 1
Problem 2. Consider Figure 2 again. (1) Write down the adjacent nodes for \( v_{1}\) and \( v_{2}\).(2) write down the adjacency matrix in the order of \( v_{1}-v_{5}\).
Problem 3. Given 6 nodes, construct a binary tree with the following requirement:
(1) Draw a tree with minimum height.
(2) Draw a tree with maximum height.
(3) Prove that your solution for (2) by mathematical induction.
CSCI - 3 3 1 0 Homework 9 - 1 0 Problem 1 .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!