Question 1466 – Data-Structures
November 28, 2023Software-Engineering
November 28, 2023Question 1465 – Data-Structures
The characters of the string K R P C S N Y T J M are inserted into a hash table of size 10 using hash function
h(x) = ((ord(x) – ord(A) + 1)) mod 10
If linear probing is used to resolve collisions, then the following insertion causes collision
Correct Answer: C
Question 326 Explanation:
Given information,
Hash table size=10 and index starts from 0 to 9.
String=K R P C S N Y T J M
hash function = h(x) = ((ord(x) – ord(A) + 1)) mod 10
Hash table size=10 and index starts from 0 to 9.
String=K R P C S N Y T J M
hash function = h(x) = ((ord(x) – ord(A) + 1)) mod 10
Y
C
M
P
Subscribe
Login
0 Comments