Hashing
Hashing
HASHING
Syllabus
1) Introduction to Hashing
2) Hash functions
a) Division Method
b) Multiplication Method
c) Mid Square Method
d) Folding Method
3) Collision resolution techniques
a) Chaining
b) Open addressing.
Hashing …?
Hashing is a technique used to store data in a way that
allows for efficient retrieval.
Hashing is a searching process that does not require
unnecessary comparison and directly find the location of the
key by using hash function.
Note: A hash is a fixed-size numerical or alphanumeric
value that is generated from input data (such as a string,
number, or any type of data) through a hash function.
Purpose:
It helps to quickly map data to a specific location in a hash
table using a hash function.
The transformation of a key to the corresponding value is
done using a Hash Function and the value obtained from the
hash function is called Hash Code.
table size 𝑚.
Step 3: Apply the modulus operation to ensure the result fits into the