Hashing in Data Structure | Collision Resolution Techniques | Hashing in DBMS
Hashing in DBMS Hashing is a technique used to map data elements (keys) to specific locations in a hash table using a hash function. It allows insertion and retrieval of data efficiently Hash Function A hash function converts a key into a hash code (index) , which is used to store and retrieve the data from a hash table. h(k)=k mod m Where: k → Key m → Hash table size h(k) → Hash index Hash Table A hash table is a data structure that stores data in an array format . Each position in the table is called a bucket , and the position is accessed using the hash function. Example Consider Keys (k) = 11, 18, 20, 25, 29, 33 Hash table size (m) = 7 Hash function: h(k)=k mod m ...