Question 1791 – Nielit Scientist-B 17-12-2017
November 5, 2023Question 1793 – Nielit Scientist-B 17-12-2017
November 5, 2023Question 10173 – Algorithms
Insert the characters of the string K R P C S N Y T J M into a hash table of size 10.
Use the hash function
h(x) = (ord(x) – ord("a") + 1) mod10
and linear probing to resolve collisions.
(a) Which insertions cause collisions?
(b) Display the final hash table.
Correct Answer: A
Theory Explanation.
Subscribe
Login
0 Comments