Question

You are given the following data 659, 230, 751, 291, 433, 955, 518, 34, 189, 239...

You are given the following data 659, 230, 751, 291, 433, 955, 518, 34, 189, 239 to insert into a table of size 10. The hash function is hash(key) = key mod tableSize. Assume that the table is allowed to get full without starting a rehashing. Draw the resulting hash table when open addressing with quadratic probing is used. You must write the indices calculated by the hash function hash(key) and by the probing strategy hi(key) for all reattempts, for each key to get full points.

I dont have any problems until I try to insert 189. Since it is quadratic probing and the tableSize isn't a prime number it won't hit any of the spots that are remaining. Without rehasing what can i do?

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
You are given the following data 659, 230, 751, 291, 433, 955, 518, 34, 189, 239...
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
  • IN JAVA LANGUAGE: For this lab you are required for implement the following methods: 1. public...

    IN JAVA LANGUAGE: For this lab you are required for implement the following methods: 1. public QuadraticProbingHashTable( int size ): As the signature of this method suggests, this is a constructor for this class. This constructor will initialize status of an object from this class based on the input parameter (i.e., size). So, this function will create the array HashTable with the specified size and initialize all of its elements to be null. 2. public int hash(int value, int tableSize...

  • This should be in Java Create a simple hash table You should use an array for...

    This should be in Java Create a simple hash table You should use an array for the hash table, start with a size of 5 and when you get to 80% capacity double the size of your array each time. You should create a class to hold the data, which will be a key, value pair You should use an integer for you key, and a String for your value. For this lab assignment, we will keep it simple Use...

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