Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Recall the definition of a universal family of hash functions: Let U = {x1,...,xn} denote the domain of inputs and {0,..., m 1} denote

image text in transcribed 

Recall the definition of a universal family of hash functions: Let U = {x1,...,xn} denote the domain of inputs and {0,..., m 1} denote the outputs for a family Hof hash functions. H is called universal, if for every distinct pair x y EU, the number of functions hH satisfying h(x) = = h(y) is H m' a) Let {h1, h2, h3} be a family of hash functions that maps {x1, x2, x3, x4, x5} to {0, 1,2} as shown in the table below. Show whether this is universal or why not. h h2 h3 x1 0 1 2 x2 1 1 0 x3 1 2 1 x4 0 2 0 X5 1 0 2 b) Given h {x1,...,xn} {0,..., m -1} where h is part of a universal family of hash functions, conclude that the expected chain length (the number of inputs that hash to a specific value) is O(n/m). c) Show that if m = O(n), the expected search time is O(1).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Smith and Roberson Business Law

Authors: Richard A. Mann, Barry S. Roberts

15th Edition

1285141903, 1285141903, 9781285141909, 978-0538473637

More Books

Students also viewed these Algorithms questions