Lecture 15 - 2025 / 6 / 3
EQ(x,y)=[x=y], x,y∈{0,1}∗
- randomized algorithm
- high probability correctness
Prime Number Theorem (PNT): #primes≤m∼lnmm
Protocol:
Alice has x∈{0,1}n i.e. x=x0x1⋯xn−1, and Bob has y∈{0,1}n i.e. y=y0y1⋯yn−1. They want to comute EQ(x,y).
- Choose a prime p∈[n100,n101]
- Alice: randomly choose an integer t∈{0,1,⋯,p−1}
- Alice: Compute the polynomial f(t)=(xn−1tn−1+xn−2tn−2+⋯+x0)modp
- Alice: Send t and f(t) to Bob (using O(logp)=O(logn) bits)
- Bob: Receiving t and f(t), compute g(t)=(yn−1tn−1+yn−2tn−2+⋯+y0)modp
- Bob: Compare f(t) and g(t), if they are equal, output 1, otherwise output 0.
Error occurs when f=g but f(t)=g(t), i.e. t is a root of f−g. The probability that t∈{0,1,⋯,p−1} is a root of f−g is at most pn−1=O(n−99).
Max Entropy
X is a d-dim random vector, E(X)=0, Cov(X)=E(XXT)=Σ. Max entropy distribution is the multivariate Gaussian distribution N(0,Σ).
Theorem. Let X be a d-dim random vector, E(X)=0, Cov(X)=Σ. Let Y∼N(0,Σ). Then h(X)≤h(Y).
D(X∥Y)=∫fX(t)lnfY(t)fX(t)dt=−h(X)−∫fX(t)lnfY(t)dt=−h(X)−ln(2π)d/21+∫fX(t)2tTΣ−1tdt=−h(X)−ln(2π)d/21+∫fY(t)2tTΣ−1tdt=−h(X)+h(Y)≥0