Question: PLEASE ANSWER d) and e) 7. Primes and Probability. In this problem, you will use the following facts: (1) any integer can be uniquely factored

 PLEASE ANSWER d) and e) 7. Primes and Probability. In this

PLEASE ANSWER d) and e)

7. Primes and Probability. In this problem, you will use the following facts: (1) any integer can be uniquely factored into primes; (2) the number of primes less than any number mis e(m/log m) (this is the prime number theorem). We will also make use of the following notation for integers I and y: 1) ry means that I "divides" y, which means that there is no remainder when you divide y by I. and 2) = = y (mod p) means that and y have the same remainder when divided by p, or in other words, plx - y). (a) Show that for any integer I, I factors into at most log a unique primes. Hint: 2 is the smallest prime. (D) Let I be some positive integer and let p be a prime chosen uni- formly at random from all primes less than or equal to m. Use the prime number theorem to show that the probability that pla is ((log :)(log m)/m). (e) Now let 1 and y both be positive integers less than n, such that #y, and let p be a prime chosen uniformly at ran- dom from all primes less than or equal to m. Using the pre- vious result, show that the probability that 1 = y (mod p) is ((logn)(log m)/m)) (d) If m = log?n in the previous problem, then what is the prob- ability that 1 = y(mod p). Hint: If you're on the right track, you should be able to show that this probability is "small", i.e. it goes to 0 as n gets large. (e) Finally, show how to apply this result to the following problem. Alice and Bob both have large numbers and y where and y are both at mast than n, for n a very large number. They want to check to see if their numbers are the same, but Alice does not want to have to send her entire number to Bob. What is an efficient randomized algorithm for Alice and Bob that has "small" probability of failure? How many bits does Alice need to send to Bob as a function of n, and what is the probability of failure, where failure means that this algorithm says sandy are equal, but in fact they are different

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!