We have n elements {x1, ..., xn} we want to hash into a table T of size s = 2n. Let us consider the following method of hashing these n elements into T: For each i = 1,..., n, do the following: 1....


We have n elements {x1, ..., xn} we want to hash into a table T of size s = 2n.<br>Let us consider the following method of hashing these n elements into T:<br>For each i = 1,..., n, do the following:<br>1. Pick a permutation of [1,..., s] uniformly at random. Call this permutation<br>T; : [s] → [s], which maps each index to the element which ends up in that<br>index.<br>2. Set j :<br>: 1.<br>3. While T[T;(j)] has an element in it, increment j.<br>4. Place x; in T[T;(j)].<br>1.1<br>Show that while inserting any ;, the probability that there are at least t iterations<br>of the while loop in Step 3 is at most 2-t.<br>

Extracted text: We have n elements {x1, ..., xn} we want to hash into a table T of size s = 2n. Let us consider the following method of hashing these n elements into T: For each i = 1,..., n, do the following: 1. Pick a permutation of [1,..., s] uniformly at random. Call this permutation T; : [s] → [s], which maps each index to the element which ends up in that index. 2. Set j : : 1. 3. While T[T;(j)] has an element in it, increment j. 4. Place x; in T[T;(j)]. 1.1 Show that while inserting any ;, the probability that there are at least t iterations of the while loop in Step 3 is at most 2-t.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here