Hashing
Hashing
Hashing
Hashing
ref sec 8.2 Data Structrures in C++
10.5 in the textbook
Purpose:
Makes data retrieval much faster. Assume we have keys
ranging from 1…N and a table of size M smaller than N. Now
have a function h: {1..N} {0.. M-1} and let h(x) be the location
where a record with key x should be stored. This is the hash
function.