Professional Documents
Culture Documents
Assignment 3
Muhammad Ali Arif
F20604037
Submitted to:
Code:
Output:
Quadratic Probing:
Code:
Output:
Double Hashing:
Output:
Conclusion
In conclusion, double hashing ,linear probing and quadratic probing are three
methods used in data structures to resolve collisions when inserting data into a
hash table.
Linear probing, on the other hand, simply looks for the next available slot in the
hash table to insert the data in case of a collision. This method is simple and easy
to implement, but can result in clustering, where multiple data items are stored
close to each other, which can degrade the performance of the hash table.