Tutorial-9_4 _Solution
Tutorial-9_4 _Solution
SET-B
CO-PO Mapping
Tutorial No. Name CO1 CO2 CO3 CO4
11 Tree Traversal, --- --
Insertion and
Deletion, BST
Question 1. Determine the preorder from the given inorder and postorder for the tree
traversal. Also draw the tree. (8 mins)
Inorder: E A C K G H D B G
Postorder: C K H B G D F A E
Solution:
Question 2. Determine the postorder from the given inorder and preorder for the tree traversal.
Also draw the tree. (8 mins)
Inorder: 2,3,1,5,4,7,8,6,9
Preorder: 1,2,3,4,5,6,8,7,9
Solution:
School of Computer Science Engineering and Technology
Question 3. Consider the priority queue in fig given below, which is maintained by a 2D
array QUEUE. A) Describe the structure after (RRR, 3), (SSS, 4), (TTT, 1),
(UUU, 4) and (VVV, 2) are added to the queue. B) Describe the structure if,
after the preceding insertions, three elements are deleted. (8 mins)
Solution:
School of Computer Science Engineering and Technology