Ds&algorithm Ia2
Ds&algorithm Ia2
Ds&algorithm Ia2
24
ANNAPOORANA ENGINEERING COLLEGE,SALEM
(An AUTONOMOUS Institution)
CO4 K3
(Or)
Given the input { 4371, 1323, 6173, 4199, 4344, 9679, 1989
} and a hash function of h(X)=X (mod 10) show the
(b) (i) resulting: 8 CO3 K5
a. Separate Chaining hash table
b. Open addressing hash table using linear probing
(ii) Describe the techniques to overcome hash collision. 7 CO3 K4
Construct an expression tree for the expression (a+b*c) +
14. (a) (i) ((d*e+f)*g). Give the outputs when you apply in order, 8 CO4 K6
preorder and post order traversals.
Create a binary search tree for the following numbers start
from an empty binary search tree. 45,26,10,60,70,30,40
(ii) 7 CO4 K6
Delete keys 10,60 and 45 one after the other and show the
trees at each stage
(or)
Define Tree. Explain the tree traversals with algorithms and
(b) (i) 8 CO4 K1
examples
(ii) Construct AVL tree ADT with own examples . 7 CO4 K6
Table of Specification
LOTS HOTS
Blooms Remembering Understanding Applying Analyzing Evaluating Create Total
(K1) (K2) (K3) (K4) (K5) (K6)
Marks 17 2 14 17 8 22 80
% 21.25 2.5 17.5 21.25 10 27.5 100
Prepared by HoD