Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose h: x rightarrow y is an (N, M)-hash function. For any y elementof H, let h^-1(y) = {x:h(x) = y} and denote s_y =
Suppose h: x rightarrow y is an (N, M)-hash function. For any y elementof H, let h^-1(y) = {x:h(x) = y} and denote s_y = |h^-1(y)|. Define S = |{{x_1, x_2}: h(x_2) = h(x_2)}|. Note that S counts the number of unordered pairs in x that collide under h. (a) Prove that sigma_y elementof y s_y = N, so the mean of the sy's is bar s = N/M. (b) Prove that S = sigma_y elementof y (s_y 2) = 1/2 sigma_y elementof y s_y^2 - N/2. (c) Prove that sigma_y elementof (s_y - bar s)^2 = 2s + N - N^2/M. (d) Using the result proved in part (c), prove that S greaterthanorequalto 1/2(N^2/M - N). Further, show that equality is attained if and only if s_y = N/M
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started