Hashing — A Fast Data Structure !!

Euhid Aman
1 min readMar 21, 2021

--

So, What’s Hashing ??

As, the internet had grown to accommodate millions of users and Terabytes of data. It became hard, to use the common types of Data Structures to link the content in the internet. The time taken to access a particular piece of information was gradually increasing.

Photo by Kaleidico on Unsplash

So, a new type of data structure called Hashing, was introduced. It reduced the time complexity to store and retrieve information.

Hashing has a time complexity of O(1), whereas other data structures such as an Array or a Linked List took a time complexity of O(log n) or O(n), based on the list is sorted or not.

In Hashing, a key is generated from the given data. And, the data is inserted at that key location. This reduces the number of comparisons, while performing various operations, in turn also reducing the time for the program run.

--

--

Euhid Aman
Euhid Aman

Written by Euhid Aman

I am a Computer Science student, who is eager to learn and spread his knowledge in basic and easy terms !!!

No responses yet