Correctness โ lfp1=p2,then p1(a1,โฆ,an)=p2(a1,โฆ,an) is always true,so the algorithm outputs p1= P2: If p p2:Let p p1-p2.Recall that ๅฃwe picked a1,,anโRSg{1,2,,100d, Lemma.Pp(au,ar๏ผ=0โคf o ๅฃ So pi(a,..,an)=p2(a,...,an)wl prob.only 0.01. ๅฃThe algorithm outputs p1โ p2 w/prob.โฅ0.99. 11Correctness โผ If ๐1 = ๐2, then ๐1 ๐1,โฆ , ๐๐ = ๐2(๐1,โฆ, ๐๐) is always true, so the algorithm outputs ๐1 = ๐2. โผ If ๐1 โ ๐2: Let ๐ = ๐1 โ ๐2. Recall that โ we picked ๐1, โฆ , ๐๐ โ๐
๐ โ 1,2, โฆ, 100๐ , โ Lemma. Pr๐๐โ๐
๐ ๐ ๐1,โฆ , ๐๐ = 0 โค ๐ ๐ . โ So ๐1 ๐1,โฆ , ๐๐ = ๐2(๐1,โฆ , ๐๐) w/ prob. only 0.01. โ The algorithm outputs ๐1 โ ๐2 w/ prob. โฅ 0.99. 11