DSA-II Assignment-1
DSA-II Assignment-1
(BCSE-0401)
COURSE/SEM: B.TECH/IVth
UNIT-I
Assignment Given Date: 12/03/2025
Assignment Submission Date: 25/03/2025 MAXIMUM MARKS: 10
Faculty Name: - Manoj Yadav Faculty Mail Id: [email protected]
INSTRUCTIONS:
BLOOM’S
Q. No. Question Statement CO KNOWLEDGE
LEVEL
CO1 K2
7. Create a Binary Tree from the given traversal:
i. Pre-Order: 1 2 4 5 3 6
CO1 K2
In-Order: 4 2 5 1 6 3
ii. In-Order: 40 20 50 10 60 30
Post-Order: 40 50 20 60 30 10
iii. Pre-Order: A B D I J F C G K H
In-Order: I D J B F A G K C H
After creating the binary tree delete the following node: CO1 K2
13, 5 and 10 from the above binary search tree created.
10. Create an AVL Tree from the given nodes:
i. 21,26,30,9,4,14,28,18,15,10,2,3,7
ii. Create an AVL tree by inserting numbers from 1 to 10.
CO1 K4
iii. Create an AVL tree by inserting the following sentence:
“Jump dogs bad ”.
11. Perform Deletion in AVL Tree from the tree created above in
the sequence mentioned below:
i. 2, 15, 9, 21,14 CO1 K3
ii. 8, 7, 2, 6
13. Perform Heap Sort on the following listed numbers and give CO1 K2
the algorithm to perform heap sort for the same.
82, 90, 10, 12, 15, 77, 55, 23
14. What are Threaded Binary Trees. Discuss its advantages and CO1 K2
disadvantages.
15. Explain Huffman Coding with the proper algorithm and
solve the problem below: