GATE CSE 2025 Session 1 Q65: Slot of key 24 under double hashing
- Programming and Data Structures
- 2 marks
- NAT
- No negative marking
Question
In a double hashing scheme, and are the auxiliary hash functions. The size of the hash table is 11. The hash function for the -th probe in the open address table is . The following keys are inserted in the given order: 63, 50, 25, 79, 67, 24.
The slot at which key 24 gets stored is ___________. (Answer in integer)
Try it: numerical answer: type the value
Show answer and explanation
Answer: 10 to 11 (official GATE 2025 final answer key)
Concept used: Open addressing with double hashing: probe modulo .
First step: Place the earlier keys: 63 → 8, 50 → 6, 25 → 3, 79 → 2, 67 → 1; then 24 starts at with step .
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2025 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Programming and Data Structures PYQs
- 2026 Session 1 · Q23Non-leaf indices in a 1-indexed binary heap with n odd
- 2026 Session 1 · Q24Empty slots after linear-probing inserts with h(x) = (x+7) mod 11
- 2026 Session 1 · Q33Maximum height of a full binary tree with 23 nodes
- 2026 Session 1 · Q34Output of a C function with a shadowed block variable
- 2026 Session 1 · Q39Recursive length of a non-empty singly linked list
- 2026 Session 1 · Q40Third insertion that can never yield a complete BST of 1..15