Home / Expert Answers / Computer Science / c-6pts-we-are-maintaining-a-hash-table-as-a-single-table-without-any-chaining-using-a-random-h-pa646

(Solved): (c) (6pts) We are maintaining a hash table as a single table without any chaining using a random h ...



(c) \( (6 \mathrm{pts}) \) We are maintaining a hash table as a single table without any chaining using a random hash functio

(c) We are maintaining a hash table as a single table without any chaining using a random hash function from a suitable universal family . We do this by using a large table size in relation to the number of elements we expect to store at any point in time (e.g., as in the second level tables in the perfect hashing scheme we saw in class). The size of the universe is much larger than , hence the need for hashing. With this simple scheme we respond to a search query by a user for an element with the value of which gives the location at which is stored (if is in the table). The user then probes location and either retrieves from location or determines that is not in the table. Inserting or deleting an element is performed by placing at location in the table or removing from location in the table. In the highly unlikely event that a newly inserted element needs to be stored at the same location as an existing element, all elements in the table need to be re-hashed with a new random hash function, which an expensive operation. An adversary wishes to sabotage this set-up by forcing a collision through the insertion of 2 (specific) elements into the table. The family is known to everyone, including the adversary, but the specific random hash function used for the table is not known to the adversary. (i) Establish that if is a 2-universal family then w.h.p. in the adversary cannot accomplish his goal. (ii) Establish that the statement in (i) need not be true if '2-universal' is replaced by 'universal'. (For this, it suffices to establish that there is some universal family for which the adversary can achieve his goal.)


We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe