Professional Documents
Culture Documents
Assignment - Hashing Data Structure
Assignment - Hashing Data Structure
1. Unless another format is specified for a particular assignment, all assignment submissions should be
in either .pdf format or in some format that can be read by Microsoft Word.
2. Every assignment must have attached a proper filled cover sheet / top sheet
3. Submit only your original work, copy solution will not be consider and may awarded with negative
marks
Problem 1: Define a hash table of size m to store the following set of numbers, write hash
function for each set separately in a way minimum collision will occur to store such data. If there is
any collision occur while storing these elements then provide their solution along with operational
cost (i.e. search)
Problem 2: The keys 12, 18, 13, 2, 3, 23, 5 and 15 are inserted into an initially empty
hash table of length 10 using open addressing with hash function h(k) = k mod 10 and
linear probing. What is the resultant hash table?