Question

Assume that n items are mapped to a hash table of size m (separate chaining) by...

Assume that n items are mapped to a hash table of size m (separate chaining) by simple uniform hashing. a. What is the probability that a given row of the hash table has at least 2 items? b. What is the probability that some row of the hash table has at least 2 items?

Homework Answers

Answer #1

a) Let us consider as the probability that row '' contain '' elements in the hash table. The probability that a given row (R) has at least K items is computed as

.

This is given as

  

In our problem,

,k = 2

  

b) This problem is almost similar to above problem except that row is not specified here. So, we need to choose the row. There are rows.We can select a row in m ways. The probability that some row has at least k items is :

In our problem,

k = 2

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
You are given a hash table which uses separate chaining. The table has a size of...
You are given a hash table which uses separate chaining. The table has a size of 10. The hash function being used is h(x) = x. You insert 6, 13, and 201 into the hash table. If you then insert(3) into the hash table, it will be put at which index? You insert 9, 19, and 29 into the hash table. What is the size of the bucket at index 9?
Suppose a hash table contains k buckets and holds n values, where k, n≥2, and suppose...
Suppose a hash table contains k buckets and holds n values, where k, n≥2, and suppose that the hash function obeys the simple uniform hashing assumption: - Hash function distributes records among the buckets randomly, each with equal probability - Each record's location is independent of the location of all the other records (a) What is the expected number of buckets that contain exactly 1 value? Hint: Define Ej,m as the event that bucket j contains exactly the mth value,...
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) Suppose that you have table size M=101 and you are using double hashing. The first...
1) Suppose that you have table size M=101 and you are using double hashing. The first hash function h1, is used to determine the home position, and the second hash , h2, is used to determine the increment for linear probing. Suppose you have two records with keys k1, and k2, such that: h1(k1) = 5, h2(k1)= 3, h1(k2) = 5, h2(k2) = 11. Note: h2 is returning an offset, not an index. Fill in the Blank : The First...
A birthday attack (Links to an external site.) is a type of cryptographic attack that exploits...
A birthday attack (Links to an external site.) is a type of cryptographic attack that exploits the mathematics behind the birthday problem in probability theory (Links to an external site.). Birthday matching is a good model for collisions between items randomly inserted into a hash table. What is the probability that some birthday is shared by two people in a class of n randomly and independently selected students? To work this out, we’ll assume that the probability that a randomly...
Grab your bag of M & Ms and sort them out by color. Record the number...
Grab your bag of M & Ms and sort them out by color. Record the number of each color in row A of the table below. Also record the total number of M&Ms in your bag, n. Calculate the expected value of each color in a bag of size n. Record your results in Row B. Calculate the standard deviation for each color in a bag of size n. Record your results in Row C. Using the Range-Rule-Of-Thumb, calculate the...
If A and B are matrices, A has size m × n, and the multiplication ABA...
If A and B are matrices, A has size m × n, and the multiplication ABA is defined, what can you say about the size of B, if anything?
Find the minimum sample size n needed to estimate mu for the given values of​ c,...
Find the minimum sample size n needed to estimate mu for the given values of​ c, sigma and E. c=0.95, sigma=8.3 and E=2 Assume that the preliminary sample has at least 30 members. n=?
Appendix B.4 is a table of random numbers that are uniformly distributed. Hence, each digit from...
Appendix B.4 is a table of random numbers that are uniformly distributed. Hence, each digit from 0 to 9 has the same likelihood of occurrence. A table of random numbers is given below. Assume that these are 5 random samples of five values each. 7 6 2 8 1 0 2 9 4 6 5 3 7 0 3 3 4 0 8 1 0 6 1 3 5 b-1. Determine the population mean and mean of each sample. Is...
Suppose a simple random sample of size n is obtained from a population whose size is...
Suppose a simple random sample of size n is obtained from a population whose size is N and whose population proportion with a specified characteristic is Complete parts (a) through (c) below. = 1000 = 2,000,000 p = 0.25. Click here to view the standard normal distribution table (page 1).7 Click here to view the standard normal distribution table (page 2).8 (a) Describe the sampling distribution of p. A. Approximately normal, μ and p = 0.25 σ p ≈ 0.0137...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT