GATE CS 2025 Set 1 | Question 65

Programming & Data Structures › Advanced Concepts · NAT · 2 marks · Answer: 10 to 11

  1. Question 65Programming & Data Structuresnat2 marks
    In a double hashing scheme, and are the auxiliary hash functions. The table size . The -th probe uses . The keys are inserted in order: . The slot at which key 24 gets stored is ___________. (Answer in integer)

    Answer: 10 to 11

    Solution

    Answer: 10 Insert each key (slots –):
    63: h1 = 63 mod 11 = 8        -> slot 8
    50: h1 = 50 mod 11 = 6        -> slot 6
    25: h1 = 25 mod 11 = 3        -> slot 3
    79: h1 = 79 mod 11 = 2        -> slot 2
    67: h1 = 67 mod 11 = 1        -> slot 1
    For key 24: (occupied by 79), . - (occupied by 50). - (empty) → slot 10. Key 24 is stored at slot .

More GATE PYQ on Advanced Concepts

All GATE CS Programming & Data Structures PYQ →

Attempt GATE CS 2025 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →