Author |
Topic: cormen book problem (Read 2037 times) |
|
Dheeraj Kumar jain
Newbie
Gender:
Posts: 4
|
|
cormen book problem
« on: Aug 16th, 2008, 9:47pm » |
Quote Modify
|
Alice has a copy of a long n-bit file A = (an-1, an-2, . . . , a0) and Bob similarly has an n-bit file B = (bn-1, bn-2, . . . , b0). Alice and Bob wish to know if their files are identical. To avoid transmitting all of A or B, they use the following fast probabilistic check. Together, they select a prime q > 1000n and randomly select an integer x from {0, 1, . . . , q - 1}. Then, Alice evaluates A(x)=(a0*x^0+a1*x^1...+ai*x^i......an*x^n) and Bob similarly evaluates B(x). Prove that if A is not equal to B, then there is at most one chance in 1000 that A(x) = B(x), whereas if the two files are the same, A(x) is necessarily the same as B(x).
|
« Last Edit: Aug 16th, 2008, 10:50pm by william wu » |
IP Logged |
|
|
|
Eigenray
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 1948
|
|
Re: cormen book problem
« Reply #1 on: Aug 17th, 2008, 1:38am » |
Quote Modify
|
You mean they send A(x) and B(x) mod q, right?
|
|
IP Logged |
|
|
|
Dheeraj Kumar jain
Newbie
Gender:
Posts: 4
|
|
Re: cormen book problem
« Reply #2 on: Aug 17th, 2008, 2:17am » |
Quote Modify
|
ya they both know q and x and finally, Alice sends A(x) to Bob and Bob Sends B(x) to Alice.
|
|
IP Logged |
|
|
|
Eigenray
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 1948
|
|
Re: cormen book problem
« Reply #3 on: Aug 17th, 2008, 3:19am » |
Quote Modify
|
I mean, the question should be asking about the probability that A(x) B(x) mod q, since if x>1, A(x) = B(x) implies A = B, not to mention the fact that the integer A(x) would take more than n bits to send.
|
|
IP Logged |
|
|
|
Eigenray
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 1948
|
|
Re: cormen book problem
« Reply #5 on: Aug 17th, 2008, 8:34am » |
Quote Modify
|
Right, A(x) and B(x) are evaluated mod q. Hint: how many roots can a polynomial have over any field?
|
|
IP Logged |
|
|
|
Dheeraj Kumar jain
Newbie
Gender:
Posts: 4
|
|
Re: cormen book problem
« Reply #6 on: Aug 17th, 2008, 10:03am » |
Quote Modify
|
ya that must be the hint...bt not getting how to apply that here
|
|
IP Logged |
|
|
|
|