DSA Assignment No 1
DSA Assignment No 1
All the Second year computer engineering students are hereby inform to complete the following given
assignment of Data Structures and Algorithms on Unit No-1 Hashing. All are instructed to get it checked on
or before 07th February 2025.
table. (FEB-23-6)
Add following keys in hash table by applying extendible hashing mechanism.
CO1, L2, L3
17 Assume capacity of each directory to store buckets is 3. CO4.
Keys are 10, 20, 15, 12, 25, 30, 7, 11, 08 (FEB-23-5)
Create a Hash table and resolve collisions using linear probing with and without
CO1, L2, L3
18 replacement : 9, 45, 13, 59, 12, 75, 88, 11, 105, 46 CO4.
Hash table size = 7 and Hash function = key mod 7
Create a Hash table and resolve collisions using Quadratic Probing :{4371, 1323,
CO1, L2, L3
19 6173, 4199, 4344, 9679, 1989} Hash table size =10 and Hash function = key mod CO4.
10.
Given the Inputs :{ 4371, 1323, 6173, 4199, 4344, 9679, 1989} Hash table size
=10 and Hash function = key mod 10. show the results for the following: CO1,
L2, L3
20 i)Open addressing hash table using Linear Probing CO2,
ii)Open addressing hash table using Quadratic Probing CO4.
iii)open addressing hash table with second hash function h2(X)=7-(x mod 7)
Explain Quadratic Probing and solve with data 1111, 1253, 5133, CO1, L2, L3
21
4899, 2364, 8979, 2899, table size is 10 CO4.
Explain Double hashing and solve with data 4371, 1323, 6173, 4199, 4344, L2, L3
22
9679, 1989. Table size is 10, with 2nd hash function given is 7- key mod 7