Alice has a copy of a long?n-bit file?A?=??a n - 1 , a n - 2 ,

Question:

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

image

and Bob similarly evaluates B(x). Prove that if A ? B, 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).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Introduction to Algorithms

ISBN: 978-0262033848

3rd edition

Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest

Question Posted: