Instructions
Type the number and click on any operation to observe how it's performed.
Click Reset button to reset the demo.
Hash Values :
Index Values :
0
1
2
3
4
5
6
7
8
9
Legend:
Element Added/Found
Element Not Found
Formula:
hash1(key) = key % 10
hash2(key) = 5 - (key % 5)
Double Hashing will be done using: (hash1(key) + i * hash2(key)) % 10
Step:
hash1(key) = key % 10
hash2(key) = 5 - (key % 5)
Double Hashing will be done using: (hash1(key) + i * hash2(key)) % 10