A great lathe operator commands several times the wage of an average lathe operator, but a great writer of software code is worth 10,000 times the price of an average software writer. Bill Gates

Separate chaining

Language Java | Level Intermediate | Category Data structure | September 8, 2015 9:32 am


Data structure Description

Hash table uses key and value for storing the elements. If the key has duplicate value, it may lead to hashing Collision. Separate Chaining is one of name collision solution. It is a scheme which each position in the hash table has a list to handle collisions.

Write a program to implement separate chaining in hash table?


Output

   					 

Insert 10 items in the hash table
60,80,11,12,23,23,34,76,67,99,

Search '50' in the hash table
Could not find 50

Search '80' in the hash table
Found 80

				    

Comments


No comments available!

Please login to add comments.