Given a hash table T with 25 slots that stores 2000 elements, the load factor for T is …
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2015 Set 3 · Q17
Time
Your answerNumerical answer
Solution
Official answer: 80
Searching, Sorting and HashingThe load factor of a hash table is defined as the ratio of the number of elements () stored in the hash table to the number of slots/buckets () available in the table [4]:
Given:
Number of elements,
Number of slots,
Substituting these values:
Thus, the load factor is 80.
Try the question first, then check your work.
Examiner trap
The load factor is the average number of stored elements per slot in the hash table.
This Searching, Sorting and Hashing previous year question is Q17 of the GATE CSE 2015 Set 3 paper. Find more GATE CSE PYQs on Searching, Sorting and Hashing in Algorithms, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Searching, Sorting and Hashing PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Searching, Sorting and Hashing has 27 GATE CSE PYQs across 20 papers from 2012 to 2026. 5 of them are 1-mark NAT questions like this one, and it is the only one in GATE CSE 2015 Set 3.
How GATE tests Searching, Sorting and HashingIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.