Question

data structures What properties do we want for our hash function? Select one or more: a....

data structures

What properties do we want for our hash function?

Select one or more:

a. fast

b. deterministic

c. avoids clustering

d. output 0 to size-1

e. uniform output distribution

Homework Answers

Answer #1

ANSWER : HERE IS THE ANSWER FOR YOUR QUESTION:

----------------------------------------------------------------------------------------------------------------

hash function is used to hash the key , value pairs in the form of the table :

lets see the properties that we want to see in our hash function:

1) fast---> this option is true as hash function should be fast enough to determine the slot in the table

2) deterministic--> this option is also true as we want that our hash function to be unambigiuos and fully deterministic

3) avoids clustering---> this option is also true as we want to minimize the clustering in the hash function

4) output 0 to size-1 ----> this option is false as output should not be restricted to size of the hash function .

5) uniform output distribution-----> this option is also true as we will definately want that output value should be of uniform distribution and no clustering of values could takes place

thus , the correct options are:

a,b,c,e

----------------------------------------------------------------------------------------------------------------

I hope this would help you out.

If you like my answer , please upvote

If you have any doubt, you can provide comment /feedback below the answer

Thanks

  

Know the answer?
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
Similar Questions
Data structure and Algorithm A hash table of length 10 using open addressing with hash function...
Data structure and Algorithm A hash table of length 10 using open addressing with hash function h(k) = k mod 10, and linear probing has been created. 0 1 2 32 3 73 4 12 5 15 6 82 7 37 8 65 9 9 Now the item 12 needs to be deleted using “Deletion with repair’. What is the resultant hash table? A) 0 1 2 32 3 73 4 15 5 82 6 37 7 65 8 9...
For the Control Volume approach, Select one: a. we need to know the fluid properties (such...
For the Control Volume approach, Select one: a. we need to know the fluid properties (such as velocity, pressure, density) at every point inside the Control Volume b. we need to know the fluid properties (such as velocity, pressure, density) along the Control Surface c. we need to know the fluid properties (such as velocity, pressure, density) at every point inside the Control Volume as well as along the Control Surface According to the principle of buoyancy a body totally...
Which hypothesis test do we use when comparing more than two samples of normal data? Select...
Which hypothesis test do we use when comparing more than two samples of normal data? Select one: a. 1 sample t test b. HOV c. Regression d. ANOVA
What issue(s) does data redundancy cause? Select one: a. Increased potential for input errors b. More...
What issue(s) does data redundancy cause? Select one: a. Increased potential for input errors b. More update overhead c. Larger file size on disk d. All of these e. None of these
We want to provide home-delivery service to our customers. Select one: a. Business Requirement b. User/Stakeholder...
We want to provide home-delivery service to our customers. Select one: a. Business Requirement b. User/Stakeholder Requirement c. Functional Requirement d. Non-Functional Requirement Clear my choice Question 6 Not yet answered Marked out of 0.50 Not flaggedFlag question Question text The system must use 128-bit encryption techniques to store data. Select one: a. Business Requirement b. User/Stakeholder Requirement c. Functional Requirement d. Non-Functional Requirement Clear my choice Question 7 Not yet answered Marked out of 0.50 Not flaggedFlag question Question...
3.2 Class Dictionary This class implements a dictionary using a hash table in which collisions are...
3.2 Class Dictionary This class implements a dictionary using a hash table in which collisions are resolved using separate chaining. The hash table will store objects of the class Data. You will decide on the size of the table, keeping in mind that the size of the table must be a prime number. A table of size between 5000-10000, should work well. You must design your hash function so that it produces few collisions. A bad hash function that induces...
1. What is the function of the kidneys? There may be more than one answer. Select...
1. What is the function of the kidneys? There may be more than one answer. Select one or more: a. Maintain the plasma osmolarity b. Maintain the body temperature c. Produce formed elements d. Produce renin and erythropoeitin e. Produce anti-diuretic hormone 2. What is TRUE about the anti-diuretic hormone? There may be more than one answer. a. Anti-diuretic hormone is a vasopressin which causes a vasoconstriction of arterioles to increase blood pressure. b. Anti-diuretic hormone is produced at the...
Data Structures using C++ Consider the definition the following function template: template <class Type> Type func(Type...
Data Structures using C++ Consider the definition the following function template: template <class Type> Type func(Type list[], int size) {        Type x = list[0];        Type y = list[size - 1];        for (int j = 1; j < size / 2; j++)        {               if (x < list[j])                      x = list[j];               if (y > list[size - 1 - j])                      y = list[size - 1 - j];        }        return x + y; }...
#data structures Look at square numbers one more time:    square(1) = 1    square(N) =...
#data structures Look at square numbers one more time:    square(1) = 1    square(N) = square(N-1) + 2N -1 Assume the definition has been implemented correctly. How many stack frames for square() will be created on the computer memory stack in RAM if main() calls square(5)? A) 1 B) 3 C) 5 D) 6
Suppose for a certain population we do not know the value of population standard deviation (σ),...
Suppose for a certain population we do not know the value of population standard deviation (σ), and we want to test: H0: μ ≥ 30 against Ha: μ < 30. We are going to perform the test using a sample of size 43. What assumptions do we need about population distribution? A. Since sample size is small, we assume the population is normally distributed. B. Since sample size is sufficiently large, we do not need any assumption about population distribution....
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT