...
Question 7123 – Data-Structures
November 23, 2023
Question 7719 – Data-Structures
November 23, 2023
Question 7123 – Data-Structures
November 23, 2023
Question 7719 – Data-Structures
November 23, 2023

Question 7573 – Data-Structures

Consider a hash table of size m = 100 and the hash function h(k) = floor(m(kA mod 1)) for A = frac{(sqrt5 – 1) 2 = 0.618033 Compute the location to which the key k = 123456 is placed in hash table.

Correct Answer: C

Question 533 Explanation: 
h(k) = floor(100(123456* 0.618033 mod 1))
= floor(100(0.88204))
= floor(88.204)
= 88
A
77
B
82
C
88
D
89
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!