Dsa II Internal QP
Dsa II Internal QP
PART B 3*16=48
Answer any 3 Questions
1. a) Explain in detail about merge sort algorithm with an example
35,45,25, 11,6,85
b) Construct Binary Search Tree for the following elements
14,17,11,7,53,4, 13, 12 (a) insert 45 b) Delete 11
ii) write algorithm for insertion
2. Use division method for Open addressing - Linear probing, Quadratic
probing. 4371, 1323, 6173, 4199, 4344, 9679, 1989 and a hash
function h(x)=X (mod 10)
3. a) Construct AVL tree for the elements 14, 17, 11, 7, 53, 4. 13,12. Also
write suita ble rotation algorithm for AVL
b) Write algorithm for inorder, preorder and post order traversal. Give
an exannple.
4 a) Explain krushkal algorithm tofind out MST