Sail E0 Webinar
Question
When is it appropriate to use direct addressing?
Options:
A .  When the array is comparatively large
B .  When the universe U of keys is reasonably small
C .  When the universe U of keys is reasonably large
D .  When the array is comparatively small
Answer: Option B


Since each key is associated with a slot in the array, it is better to use direct addressing when the universe of keys is small as the array size grows with the increase in number of keys.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers