Any fool can write code that a computer can understand. Good programmers write code that humans can understand. Martin Fowler

Linear probing hash tables

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

Data structure Description

Linear probing is a scheme in computer programming for resolving hash collisions of values of hash functions by sequentially searching the hash table for a free location.

Write a program to implement linear probing hash tables



Insert values into Hash table.

Print values from Hash table
a 1111
b 2222
c 3333

Print values from Hash table after remove the 'b'
a 1111
c 3333

Get the value of 'c': 3333

Clear the Hash table.

Size of the Hash table after clear: 0



No comments available!

Please login to add comments.