Given that hash table with 25 slots that stores 2000 elements, the load factor for is _________.
GATE CSE 2015Data Structures › Hashing & Complexity AnalysisVerified
GATE CSE 2015 PYQ: Given that hash table T T T with 25 25 25 slots that stores 2000 2000 2000 elements, the load factor a a a…
Answer
80
Approach
The load factor of a hash table is defined as the number of stored elements divided by the number of slots (buckets). Here, the table has 25 slots and stores 2000 elements, so compute $\alpha = 2000 / 25$.
The load factor is the ratio of stored entries to available slots. Substituting 2000 entries and 25 slots gives 2000/25 = 80.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.