What is a Hash Table?

A brief introduction on Hash Tables and the use of the Hash function, along with some strategies to build it.

Hashing

Until now, the overall time complexity accomplished in cases of insertion, deletion, and searching approach O(nLogn), or at O(Logn) at minimum in balanced Binary Trees, which is pretty good. But what to do if we want the results in constant time!?

🔍 Hashing, How and Why?

Hashing is a process used to uniquely identify objects and store each object at some pre-calculated unique index called its key. So the object is stored in the form of a key-value pair, and the collection of such items is called “Dictionary”. Each object can be searched using that key in O(1).

For a significantly large amount of data, even O(nLogn) becomes significantly large which might affect the efficiency of an algorithm. Ideally, a data ...