Answer All Questions, Each Carries 3 Marks: Reg No.: - Name
Answer All Questions, Each Carries 3 Marks: Reg No.: - Name
Page 1 of 2
D D3826 Pages: 2
b) What is hash table? What are the properties of hash function? (5)
18 What is max heap?Write an algorithm to perform heap sort. Give example. (10)
19 Write C program/algorithm to perform selection sort. Perform selection sort on an (10)
array [5,3,1,7,9].
20 What is double hashing? Suppose size of the hash table is 11. Open addressing (10)
and double hashing is used to resolve collisions.The hash function used is H(k) = k
mod 11.The second hash function is H2(k) = 5 - (k mod 5)
What values will be in the hash table after the following sequence of insertions?
16, 23 9, 34, 12, 56
****
Page 2 of 2