Question

Give an example of a set H of hash functions such that h(x) is equally likely...

Give an example of a set H of hash functions such that h(x) is equally likely to be any element of {0, ..., M − 1} but H is not 2-universal.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Consider set H consists of M hash functions h0, h1, ..., hM-1

Such hi( x) = i for any input x.

Now if hash function is selected uniformly at random, then

since any one among {0,1,...,M-1} can be selected with uniform probability.

However since each of the hash function hi is a constant function.

Hence for any i in {0,1,..,M-1}

Hence this hash function does not belong to 2-universal hash function where for any hi in set H.

Hence this example is appropriate .

Please comment for any clarification .

Add a comment
Know the answer?
Add Answer to:
Give an example of a set H of hash functions such that h(x) is equally likely...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT