Suppose that we have a hash table with n slots, with collisions resolved by chaining, and suppose that n keys are inserted into the table. Each key is equally likely to be hashed to each slot. Let M be the maximum number of keys in any slot after all the keys have been inserted. Your mission is to prove an O (lg n/lg lg n) upper bound on E[M], the expected value of M. a. Argue that the probability Qk that exactly k keys hash to a particular slot is given by Qk = (1/n)k(1 1/n) nk (n/k).. b. Let Pk be the probability that M = k, that is, the probability that the slot containing the most keys contains k keys. Show that Pk ≤ n Q k.. c. Use Stirling's approximation, equation (3.17), to show that Qk
d. Show that there exists a constant c > 1 such that for k0 = clg n/ lg lg n.
Conclude that Pk
e. Argue that
Conclude that E[M] = O(lg n/ lg lg n)..
Students also viewed these Computer Sciences questions
Suppose that we have a multiprogrammed computer in which each job has identical characteristics....... ... Compute these quantities for one, two, and four simultaneous jobs, assuming that the period T is distributed in each of the following ways: a. I/O first half, processor second half b. I/O...
Suppose that we have a sample x1, x2, . . ., xn and we have calculated xn and sn2 for the sample....... ... be computed using xn and xn + 1.(b) Show that (c) Use the results of parts (a) and (b) to calculate the new sample average and standard deviation for the data of Exercise 6-22, when the new...
Suppose that we have a ternary relationship R between entity sets A, B, and C such that A has a...... ... the key; B and C are similar. R has no descriptive attributes. Write SQL statements that create tables corresponding to this information so as to capture as many of the constraints as possible....
For each of the following situations, determine which measure of central tendency is most appropriate and justify your reasoning. (a) Average price of a home sold in Pittsburgh, Pennsylvania, in 2011 (b) Most popular major for students enrolled in a statistics course (c) Average test score when the...
The annual accounting statement of revenues and costs for a local flower shop shows the following:Revenues ..........................................$250,000Supplies ............................................ $25,000Employee Salaries ...............................$170,000If the owners of the...
For the following exercises, algebraically determine all solutions of the trigonometric equation exactly, then verify the results by graphing the equation and finding the zeros. 2cos 2 x ? cos x + 15 = 0
Artesa, a leading firm in the semiconductor industry, produces digital integrated circuits (ICs) for the communications and defense markets. For the year ended December 31, 2013, Artesa sold 242,400 ICs at an average selling price of $ 47 per unit. The following information also relates to 2013...
Your company produced the following reported year-to-date (YTD) income statements during 2014-2015 period. You have recently completed a comparable company analysis and figured out that the applicable, average Mcap/LTM Net Income multiple for your company is 25.5x Reported YTD Income Statement...
Maureen Laird is the chief financial officer for the Alva Electric Co., a major public utility in the Midwest. The company has scheduled the construction of new hydroelectric plants 5, 10, and 20 years from now to meet the needs of the growing population in the region served by the company. To...
A hash table of size m is used to store n items, with n m/2. Open addressing is used for collision resolution. a. Assuming uniform hashing, show that for i = 1, 2, ..., n, the probability that the ith insertion requires strictly more than k probes is at most 2-k. b. Show that for i = 1, 2, ..., n,...
Suppose that we are given a key k to search for in a hash table with positions 0, 1, ..., m - 1, and suppose that we have a hash function h mapping the key space into the set {0, 1, ..., m -1. The search scheme is as follows. 1. Compute the value i h(k), and set j 0. 2. Probe in position i for the...
A block of material has a mass of 130 kg and a volume of 4.6 × 10-2 m3. The material has a specific heat capacity and coefficient of volume expansion, respectively, of 750 J / (kg · Co) and 6.4 × 10-5 (Co)-1. How much heat must be added to the block in order to increase its volume by 1.2 × 10-5...