1,933 views
0 0 votes
If h is any hashing function and is used to hash n keys in to a table of size m, where n<=m, the expected number of collisions involving a particular key x is :

a.)Less than 1

b.)Less than n

c.)Less than m

d.)Less than n/2.

My thought:

If all the elements maps to same key then number of collisions would be less than n, am I wrong anywhere

1 Answer

Position:
Show:

Related questions

60 60 votes
4 answers 4 answers
25.2k
25.2k views
Arjun asked Feb 12, 2020
25,153 views
Consider a double hashing scheme in which the primary hash function is $h_1(k)= k \text{ mod } 23$, and the secondary hash function is $h_2(k)=1+(k \text{ mod } 19)$. Ass...
0 0 votes
0 0 answers
577
577 views
shivangi5 asked Oct 31, 2017
577 views
Consider a hashing function that resolves collision by quadratic probing .Assume the address space is indexed from 1 to 6. Which of the following locations will never be ...
6 6 votes
1 1 answer
317
317 views
GO Classes asked Jul 28
317 views
For the keys:$47, 61, 36, 52, 56, 33, 92$consider the hash function:$h(k) = ((10k + 4) \bmod c) \bmod 7$Find the smallest positive integer $c$ such that no collisions occ...
5 5 votes
1 1 answer
224
224 views
GO Classes asked Jul 28
224 views
Which of the following statements are true?$\text{S1}$. The worst-case complexity of checking whether an object is present in a hash set is $O(1)$.$\text{S2}$. The worst-...