Hashing Presentation
Hashing Presentation
Presented By:
Monika Kavariya
Sharddha Sharma
Shivani Lodhi
Introduction to Hashing
Separate Chaining:
- Each index stores a linked list of entries.
- Simple and easy to implement.
Open Addressing:
- All elements stored in the hash table array.
- Types:
- Linear Probing
- Quadratic Probing
- Double Hashing
Separate Chaining
Linear Probing:
- h(i) = (h(k) + i) mod m
Quadratic Probing:
- h(i) = (h(k) + c1*i + c2*i^2) mod m
Double Hashing:
- h(i) = (h1(k) + i * h2(k)) mod m
Performance Considerations
Implementing dictionaries/maps
Caches (e.g., LRU Cache)
Database indexing
Cryptographic functions
Summary