GATE CS 2014 · Set-1 · File Organization & Data Types

MCQ · 2 marks · Problem DBMS-INDX-0050

Consider a hash table with 9 slots. The hash function is h(k)=k mod 9. The collisions are resolved by chaining. The following 9 keys are inserted in the order: 5, 28, 19, 15, 20, 33, 12, 17, 10. The maximum, minimum, and average chain lengths in the hash table, respectively, are
  1. A
    3, 0, and 1
  2. B
    3, 3, and 3
  3. C
    4, 0, and 1
  4. D
    3, 0, and 2

Solve it on GATE DA practice →More Storage & Indexing problems

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1918/gate2014-1-40

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com