Show the worked solutionWith chaining and simple uniform hashing, a search costs \(\Theta(1+\alpha)\) on average, which is \(O(1)\) when the load factor \(\alpha=n/m\) is constant. In the worst case all keys hash to one slot and a search costs \(\Theta(n)\).
A direct-address table indexes slot \(k\) directly, so every search is \(O(1)\) even in the worst case.Answer: C
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com