A hash-table is basically a key-value lookup data structure, a hash map. A combination of features from Array and LinkedList data structures.
Array like constant complexity and LinkedList like flexibility
It uses a hash function to compute an index into an array of buckets to put or get the data from.
A hash-table is basically a key-value lookup data structure, a hash map. A combination of features from Array and LinkedList data structures. Array like constant complexity and LinkedList like flexibility It uses a hash function to compute an index into an array of buckets to put or get the data from.
lookup - key(input) -> hashCode -> index
Problem Statement (Collision)
Collision Handling
Hash collision resolved by chaining.
Files: HashTable | Test