What is the advantage of using a dynamic set in direct addressing?

Category: QuestionsWhat is the advantage of using a dynamic set in direct addressing?
Editor">Editor Staff asked 4 weeks ago

What is the advantage of using a dynamic set in direct addressing?
 
(a) It saves time
 
(b) It saves space
 
(c) It saves both time and space
 
(d) It reduces code complexity
 
Enquiry is from Direct Addressing Tables topic in division Hash Tables of Data Structures & Algorithms I
 
I had been asked this question in an internship interview.

1 Answers
Editor">Editor Staff answered 4 weeks ago

The correct choice is (b) It saves space
 
Explanation: Using a dynamic set, the size of the array is restricted to the number of keys, hence saves space. The complexity to implement dynamic array is larger than in normal case.