Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 Problem 3 (10 points total) You have a set S of 220 (about a million) black and white images. Each image is 30x30 pixels,
3 Problem 3 (10 points total) You have a set S of 220 (about a million) black and white images. Each image is 30x30 pixels, and each pixel is either white or black. You want to build a dictionary that will allow you to search whether a given image is already in Part 1 (1 points): How large is the universe size U? Part 2 (9 points): You decide to use the following hash function U1...20 Pick twenty random pixels PiP2, , p20. So for example, pl might end up being the pixel at position (10,20) Given any image I, compute h(I) as follows k we will construct a 20-bit number from I. Check whether I is black or white at pixel pi: if black, make the leading digit a 0, if white make it a 1. Check whether I is black or white at p2 to determine the second digit, and so forth. Let h(I) be the resulting 20-bit number. Note that because h(I) is 20 bits, we indeed have h(1) e 11 2201 The question: Argue that h is not universal by exhibiting a pair of images , 12, for which Pr[h(l, is significantly larger than 1/220. (State what the probability is.)
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