What is the use of this hashtable table if we cannot store values more than or even equal to table size?
Please help me understanding the concept
A hash table is a data structure which is used to store key-value pairs. Hash function is used by hash table to compute an index into an array in which an element will be inserted or searched
for example you want to store name and clg of student together
then you can’t achieve it using array because index of array must be integer
so in hashtable you first generate a index number from string(let say name) using hashfunction
then at that index you store value(which is clg name)
in most of data stucture you can’t store data more than it’s size
you can do that when size is full then make the table of twice size and then again insert previous data into new one
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.