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
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...
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; }...
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....
1. What are the inputs to Excel’s RAND function? a.There is one argument to put into...
1. What are the inputs to Excel’s RAND function? a.There is one argument to put into the function – the distribution from which to generate random numbers. b.There are two arguments to put into the function – the number of random values to generate, followed by the number of decimal places. c.The RAND function has no arguments, just parentheses with nothing in between. 2. What do you actually type into a spreadsheet cell to use the RAND function? a. =RAND()...
Which of the following statements are TRUE? Note that there may be more than one correct...
Which of the following statements are TRUE? Note that there may be more than one correct answer; select all that are true. 1. a) All else being equal, the standard deviation of the sampling distribution of the sample mean will be smaller for n = 10 than for n = 40. b) The value of a statistic does not vary from sample to sample. c) Statistics have sampling distributions. d) The value of a parameter does not vary from sample...
What do you mean a sparsity matrix? Select one: a. None of the above b. All...
What do you mean a sparsity matrix? Select one: a. None of the above b. All of the above c. Representation of non zero elements d. Representation of null element The maximum number of elements in an array is one number higher than the index. Select one: True False The term data structure is used to denote a particular way of organizing data for particular types of operation. Select one: True False In which situation do you use a sparse...