Question

1. Given a hash table with size 10, hash function is hash(k) = k % 10,...

1. Given a hash table with size 10, hash function is hash(k) = k % 10, and quadratic probing strategy is used to solve collisions. Please insert the keys 19, 68, 59, 20, 32, 88, 56 in the hash table.

2. Let T be a binary tree with 31 nodes, what is the smallest possible height of T? What is the largest possible height of T?

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

Find the solution to the above question below, do read all the steps provided carefully and in case of any comments do comment below. If found helpful please upvote this.

Suestion ! gn quadratic probing full then we check hash (x) Vom is (haxx) + 1 a 18. m if it move ho check is also full (hash

index is empty insert 59 there 4) 20 hash (20) : 204.102 Endea o not empty (hash (20) + 16 17 y. 10 is index o is empty put 2

PE No. & uestion 2 for a binary having n nodes maximum height n-1 minimum height floor (log, n) given n = 31 maaimam height h

Add a comment
Know the answer?
Add Answer to:
1. Given a hash table with size 10, hash function is hash(k) = k % 10,...
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