Data Structures · Previous year questions
Hash Tables and Collision Resolution
10 questions from GATE CS 2014 to 2026, newest first.
Questions
GATE CS 2026 Set 1, Q.24
Consider a hash table that is initially empty. The hash table is maintained using open addressing with linear probing. The hash function used is…
Hash Tables and Collision Resolution
GATE CS 2026 Set 2, Q.30
The keys 5, 28, 19, 15, 26, 33, 12, 17, 10 are inserted into a hash table using the hash function . The collisions are resolved by chaining. After all the keys...
Hash Tables and Collision Resolution
GATE CS 2025 Set 1, Q.65
In a double hashing scheme, and are the auxiliary hash functions. The size of the hash table is . The hash function for...
Hash Tables and Collision Resolution
GATE CS 2023, Q.20
An algorithm has to store several keys generated by an adversary in a hash table. The adversary is malicious who tries to maximize the number of collisions. Let be the numbe...
Hash Tables and Collision Resolution
GATE CS 2022, Q.16
Suppose we are given keys, hash table slots, and two simple uniform hash functions and . Further suppose our hashing scheme uses for the odd keys and…
Hash Tables and Collision Resolution
GATE CS 2020, Q.33 (CS Q.23)
Consider a double hashing scheme in which the primary hash function is , and the secondary hash function is . Assume that the tab...
Hash Tables and Collision Resolution
GATE CS 2015 Set 2, Q.43 (CS Q.33)
Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for ranging from 0 to 2020?
Hash Tables and Collision Resolution
GATE CS 2015 Set 3, Q.27 (CS Q.17)
Given a hash table with 25 slots that stores 2000 elements, the load factor for is _____.
Hash Tables and Collision Resolution
GATE CS 2014 Set 1, Q.50 (CS Q.40)
Consider a hash table with 9 slots. The hash function is . The collisions are resolved by chaining. The following 9 keys are inserted in the order: 5, 28, 19,...
Hash Tables and Collision Resolution
GATE CS 2014 Set 3, Q.50 (CS Q.40)
Consider a hash table with 100 slots. Collisions are resolved using chaining. Assuming simple uniform hashing, what is the probability that the first 3 slots are unfilled after...
Hash Tables and Collision Resolution