SOL:
Given the address of the vertex V in the ordered root tree is 4.5.4.6
1) Level of V:
Each value in the address of the vertex V represents the level of the tree . Each value is seperated by dots. First value represents the first level , second value represents the second level, Third value represents the third level,fourth value represents fourth level.
Since the address contains four values the last value represents the 4th level and this is the level at which vertex V is present on . So vertex V is at level 4
2) Address of parent of V:
The children of vertex labelled with V are V.1,V.2,V.3,.... from left to right
If vertex V has address V.k then its parent address is V
Thus if vertex V has address 4.5.4.6 then it's parent address is 4.5.4
so address of parent of V is 4.5.4
3) Least number of sibblings of V have:
The vertex V has address 4.5.4.6 that means last value 6 in the address means parent of vertex V having 6 children
in that 6 children V is one of them that means V has atleast 5 sibblings
so vertex V has atleast 5 sibblings
4) Smallest possible number of vertices in V:
The address of vertex V is 4.5.4.6
The tree should have root node present at first level. so level 1 contains 1 node
The value 4 represents 4 vertices at level 2 and these vertices needs to children of the Level 1
The value 5 represents 5 vertices at level 3 and these vertices needs to children of the Level 2
The value 4 represents 4 vertices at level 3 and these vertices needs to children of the Level 3
The value 6 represents 6 vertices at level 4 and these vertices needs to children of the Level 4
The smallest possible number of vertices in tree are 1+4+5+4+6 = 20
5) The two children address of V :
The vertex V is at level 4 the children of V are present at level 5
so the addresses children of vertex V are
4.5.4.6.1 ---> first children address
4.5.4.6.2 ----> second children address
2) Given the address of vertex V in the ordered root tree is 4.3.5.3.4
1) Level of V:
Each value in the address of the vertex V represents the level of the tree . Each value is seperated by dots. First value represents the first level , second value represents the second level, Third value represents the third level,fourth value represents fourth level and fifth value represents 5th level
Since the address contains four values the last value represents the 5th level and this is the level at which vertex V is present on . So vertex V is at level 5
2) Address of parent of V:
The children of vertex labelled with V are V.1,V.2,V.3,.... from left to right
If vertex V has address V.k then its parent address is V
Thus if vertex V has address 4.3.5.3.4 then it's parent address is 4.3.5.3
so address of parent of V is 4.3.5.3
3) Least number of sibblings of V have:
The vertex V has address 4.3.5.3.4 that means last value 4 in the address means parent of vertex V having 4 children
in that 4 children V is one of them that means V has atleast 3 sibblings
4) Smallest possible number of vertices in V:
The address of vertex V is 4.3.5.3.4
The tree should have root node present at first level. so level 1 contains 1 node
The value 4 represents 4 vertices at level 2 and these vertices needs to children of the Level 1
The value 3 represents 3 vertices at level 3 and these vertices needs to children of the Level 2
The value 5 represents 5 vertices at level 4 and these vertices needs to children of the Level 2
The value 3 represents 3 vertices at level 5 and these vertices needs to children of the Level 5
The value 4 represents 4 vertices at level 6 and these vertices needs to children of the Level 5
The smallest possible number of vertices in tree are 1+4+3+5+3+4 =20
5) The two children address of V :
The vertex V is at level 5 the children of V are present at level 6
so the addresses children of vertex V are
4.3.5.3.4.1 ---> first children address
4.3.5.3.4.2 ----> second children address
1. Suppose the address of vertex v in the ordered rooted tree T is 4.5.4.6. At...
Discrete Structures 3. Suppose that the address of the vertex v in the ordered rooted tree T is 3.4.5.2.4 At what level is v? What is the address of the parent of v? What can you conclude about the number of siblings v? What is the smallest possible number of vertices in T? List the other addresses that must occur 3. Suppose that the address of the vertex v in the ordered rooted tree T is 3.4.5.2.4 At what level...
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...
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.
Suppose that a full m-ary tree T has 109 vertices and height 2. (a) What are the possible values of m? (b) Assume also that T has at least 84 leaves. Now what are the possible values of m? (c) What value of m maximizes the number of internal vertices in T? (d) For this value of m identify the number of leaves and number of internal vertices at each level of T.
A rooted binary tree T has 40 leaves. How many nodes in Thas exactly two children? (The root is always assumed to have two children.)
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...
Exercise 1 (a) Proof that (by an example with10) the number of terminal vertices in a binary tree with n vertices is (n 1)/2. (b) Give an example of a tree (n> 10) for which the diameter is not equal to the twice the radius. Find eccentricity, radius, diameter and center of the tree. (c) If a tree T has four vertices of degree 2, one vertex of degree 3, two vertices of degree 4, and one vertex of degree...
Use induction on n... 5. Use induction on n to prove that any tree on n2 2 vertices has at least two vertices of degree 1 (a vertex of degree 1 is called a leaf). 5. Use induction on n to prove that any tree on n2 2 vertices has at least two vertices of degree 1 (a vertex of degree 1 is called a leaf).
Sc Python 1 Task 2 3 Consider a binary tree of N vertices 4 such that children of node K are 2* K + 1. Vertex 1 is the root Kand 2 of the tree and each node has an integer value associated with it. Such a tree may be represented as an array of N integers by writing down values from consecutive nodes For example, the tree below 8 Test might be represented as an array o A node...
Discrete Mathematics Time Complexity Analysis Due: May 9th, 2019 Math 4 6026 Heap Sort Another algorithm for sorting uses a specialized tree structure called a "heap." Specifically, we will use a binary heap, which is like a binary tree with hierarchy. Here is an example of a binary heap structure 1. 2. There is a top vertex, called the parent vertex (aka node). The top parent vertex connects to two vertices a level below. These vertices are the "left child"...