GATEverse Practice, past papers & mock tests
GATE 2021 · Set-1
Programming & Data StructuresHashinghardMSQ2 marks
Consider a dynamic hashing approach for 4-bit integer keys: 1. There is a main hash table of size \(4\). 2. The two least significant bits of a key index the main hash table. 3. Initially, all main-hash-table entries are empty. 4. On collision, keys at a main-hash-table entry are organized as a binary tree that grows on demand. 5. The third least significant bit first divides keys into left and right subtrees. 6. Further collisions divide each binary-tree node using the fourth least significant bit. 7. A split is done only when needed. Consider the following state of the hash table. Which key-insertion sequence can cause this state?

Select every correct option.

Save your progress

Related Programming & Data Structures PYQs