Question 7123 – Data-Structures
November 23, 2023Question 7719 – Data-Structures
November 23, 2023Question 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
= floor(100(0.88204))
= floor(88.204)
= 88
77
82
88
89
Subscribe
Login
0 Comments