Question: A B C D E F G H 1 J A 0 1 0 1 0 0 0 0 0 o 1 a. Given the

 A B C D E F G H 1 J A

A B C D E F G H 1 J A 0 1 0 1 0 0 0 0 0 o 1 a. Given the above adjacency matrix: i. Draw the equivalent adjacency list. [2] ii. Draw the equivalent graph. [2] iii. Calculate the indegree and outdegree of each vertex of the graph. [1] 1 E B 0 0 1 0 1 0 0 0 0 0 010 C 0 0 0 0 0 0 1 0 0 0 D 0 1 1 0 0 0 0 0 0 0 E 00000011100 F 0000 0 0 0 0 0 0 G00 G 0 0 0 0 0 1 0 0 0 1 00 H0 0 0 0 0 1 1 0 0 0 00 1 0 0 0 0 0 1 0 1 0 1 000000000 F 00 00 00 b. Given the array representation of a binary tree [null value means the node is empty]: (null, A, E, H, D, null, B, F, I, C, null, null, null, G, J, null] i. Draw the binary tree. [2] ii. Write the pre-order and post-order traversal sequence of the tree. [2] iii. Convert the tree to a complete binary tree. [1] 0 0 1 1 J 0 0

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 Databases Questions!