Skip to content
Official PYQ · 2015

GATE CS 2015 Set 3 Q17 — Arrays, Stacks and Queues

Explain with AI
Given that hash table TT with 2525 slots that stores 20002000 elements, the load factor aa for TT is _________.
View worked solution

Answer: 80

The load factor α\alpha of a hash table is defined as the ratio of the number of elements stored (nn) to the total number of slots (mm) in the hash table:

α=nm\alpha = \frac{n}{m}

Given:

  • Number of elements, n=2000n = 2000
  • Number of slots, m=25m = 25

Substituting these values into the formula:

α=200025=80\alpha = \frac{2000}{25} = 80

Thus, the load factor for TT is 80.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Arrays, Stacks and Queues questions