Given a hash table 𝑇 with 25 slots that stores 2000 elements, the load factor…

2015

Given a hash table 𝑇 with 25 slots that stores 2000 elements, the load factor 𝛼 for 𝑇 is ____________.

Attempted by 194 students.

Show answer & explanation

Correct answer: 80

Key insight: the load factor α is the number of stored elements divided by the number of slots.

  • Compute α = 2000 Ć· 25 = 80.

  • Conclusion: The load factor α for T is 80, meaning on average there are 80 elements per slot.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir