Question: We wish to implement a dictionary by using direct addressing on a huge array. At the start, the array entries may contain garbage, and initializing
We wish to implement a dictionary by using direct addressing on a huge array. At the start, the array entries may contain garbage, and initializing the entire array is impractical because of its size. Describe a scheme for implementing a direct-address dictionary on a huge array. Each stored object should use O(1) space; the operations SEARCH, INSERT, and DELETE should take O(1) time each; and the initialization of the data structure should take O(1) time.
Step by Step Solution
3.40 Rating (178 Votes )
There are 3 Steps involved in it
We denote the huge array by 7 and taking the hint from the book we also have a stack implemented by ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
C-S-A (49).docx
120 KBs Word File
