840 views
1 votes
1 votes
Que: When key values are real, a similar data representation might be produced by using a hashing function with?

A. Mod

B. Div

C. Trunc

D. Log N

1 Answer

3 votes
3 votes

I think we should use "trunc" function to make the floating number to integer so that it will act in proper way.

Hence answer should be option C

Mod doesn't work on floating point numbers.

Division and Log will give inconsistent results.

Related questions

0 votes
0 votes
1 answer
1
Ram Swaroop asked Jan 27, 2019
1,310 views
Consider the hashing table with 'm' slots and 'n' keys. If the expected number of probes in unsuccessful search is 3. The expected number of probes in a successful search...
0 votes
0 votes
1 answer
4
Magma asked Dec 27, 2018
505 views
How to solve such kind of questions ? Can anybody tell what's is the concept behind this ?? someone provide me link so that I read it and understand the actual concept