1.The shortest path from B is B->E
So select B->E
2.Now from E shortest path is E-F Add E-F to the path ==> B->E->F
3.Now shortest from F is B,A.But F-B makes a Cycle
4.So reject F-B and select F-A Add F-A ==> B->E->F->A
5.From A only available path is A-D
SO select A-d Add A->D ==> B->E->F->A->D
6.From D the smallest path is D->G
SO final SPL is B->E->F->A->D->G since all vertex are covered
ced binary tree is a binary tree where for each vertex the heights and right subtrees of that vertex differ by at most one. Let binary tree of tr s. A balanced the minimum number of vertices in a balanced Vn denote height n. (a) (4 points) Show that on satisfies for n 2 2 the recurrence on -1+ Un-2
ced binary tree is a binary tree where for each vertex the heights and right subtrees of that vertex differ...
A tree with a vertex of degree k ≥ 1 has at least k vertices of degree 1.
Let T_1 be the rooted tree consisting of a single root vertex. For n greaterthanorequalto 2, let T_n be the rooted tree consisting of a root vertex with four children, where the subtree rooted at each child is the tree T_n - 1. (a) Calculate how many paths in T_n start from the root vertex and end at a leaf vertex. (b) What is the minimum number of bits (0's and 1's) required to represent a path in T_n that...
9. The tree below is a RBT. 14 12 20 16 15 25 (a) (4 points) Insert 27. (b) (4 points) Insert 29 (c) (4 points) Remove 20. (d) (4 points) Remove 16. Make sure to mention the case(s) that you meet in each operation
9. The tree below is a RBT. 14 12 20 16 15 25 (a) (4 points) Insert 27. (b) (4 points) Insert 29 (c) (4 points) Remove 20. (d) (4 points) Remove 16. Make sure...
1. Suppose the address of vertex v in the ordered rooted tree T is 4.5.4.6. At what level is v? What is the address of the parent of v? What is the least number of siblings v can have? What is the smallest possible number of vertices in T? If v has two children, what are their addresses? 2. Suppose the address of vertex v in the ordered rooted tree T is 4.3.5.3.4. At what level is v? What is...
discrete math
a. Consider the following rooted tree: 7 10 11 12 i. What is the root? (1 marks) ii. What is the height of the tree? (1 marks) iii. What are the children of the vertex 3? (1 marks) a. Draw the directed graph corresponding to the adjacency matrix (2 marks) [1 0 0 ON 1 2 1 b. Using the adjacency matrix in (a) only, determine the number of walks of length 3 from each vertex to each...
Suppose that x is a tree such that for every vertex v of x, (deg(v))%3=1. Prove that x cannot have 25 vertices.
Generate a minimum spanning tree for the following graph. Label all edge weights in the resulting tree and indicate the total edge weight for the tree. 9 6 G A 4 7 H 6 5 3 21 LC LO
Can
you draw the tree diagram for this please
12. Let T be a tree with 8 edges that has exactl 5 vertices of degree 1Prove that if v is a vertex of maximum degree in T, then 3 < deg(v) < 5
12. Let T be a tree with 8 edges that has exactl 5 vertices of degree 1Prove that if v is a vertex of maximum degree in T, then 3
a) Create a binary search tree with the 4 2 2 0 1 4 5 9 7 1 5 3 6 number. b) Provide the Preorder, Inorder and Postorder traversal of tree obtained in part (a). Show all the steps.