Filter by year

Hash Tables questions

Q18

GATE DA 2025 DAData StructuresMCQ1 mark−1/3 if wrong

Report a problem with Q18

What is wrong?
Consider a hash table of size 10 with indices {0,1,…,9}\{0, 1, \ldots, 9\}, with the hash function
h(x)=3x(mod10),h(x) = 3x \pmod{10},
where linear probing is used to handle collisions. The hash table is initially empty and then the following sequence of keys is inserted into the hash table: 1, 4, 5, 6, 14, 15. The indices where the keys 14 and 15 are stored are, respectively
Show answer without attempting

Loading the answer…

Q16

GATE DA 2024 DAData StructuresMCQ1 mark−1/3 if wrong

Report a problem with Q16

What is wrong?
Match the items in Column 1 with the items in Column 2 in the following table:
Column 1Column 2
(p) First In First Out(i) Stacks
(q) Lookup Operation(ii) Queues
(r) Last In First Out(iii) Hash Tables
Show answer without attempting

Loading the answer…

Q21

GATE DA 2024 DAData StructuresMCQ1 mark−1/3 if wrong

Report a problem with Q21

What is wrong?
Consider performing uniform hashing on an open address hash table with load factor α=nm<1\alpha = \frac{n}{m} < 1, where nn elements are stored in the table with mm slots. The expected number of probes in an unsuccessful search is at most 11−α\frac{1}{1 - \alpha}.

Inserting an element in this hash table requires at most ______ probes, on average.
Show answer without attempting

Loading the answer…

0/30 correct0 marks

Related topics in Data Structures