Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

given the following in order and pre order trav ja: Student Name: 3) Consider th

ID: 3701779 • Letter: G

Question

given the following in order and pre order trav ja: Student Name: 3) Consider the binary tree of 11 nodes shown here. a-9 pts) tree. Determine the depth and height of all the nodes in the internal node and decide whether the tree is height-balanced or not. b -9 pts) Determine the heights of the left and sub trees of each 8 C-9 pts) Write down the pre-order and in-order traversal of the vertices in the binary tree. d- 9 pts) Assuming that the node IDs to also represent the data stored at the nodes, transform the binary tree to a binary search tree without affecting the structure of the given binary tree the smallest possible height, what would be such a height? e 4 pts) If the nodes are to be rearranged to form a binary tree of

Explanation / Answer

According to the question (to give the Inorder and Preorder traversal from the given binary tree):

Inorder(Left, root, right) : 5 2 7 6 9 0 3 8 1 4 10

Preorder(Root, left, right): 0 2 5 9 7 6 4 8 3 1 10