Lecture 7
Letter choosing experiment
For 100 letter tiles,
(with oe blank)
For any , .
the same event twice in a row
By Cauchy-Schwarz: .
let , , so . So
So for an adversary , who random choose and output if matched.
So
Modular arithmetic
For ,
Ex: , .
Equivalent relations for any on
and
Division Theorem
For any , and , .
with modular arithmetic.
Theorem: If and, then .
Definition: , is the maximum number such that and .
Using normal factoring is slow... (Example: large , )
Euclidean algorithm.
Recursively relying on fact that
def euclidean_algorithm(a,b):
if a<b: return euclidean_algorithm(b,a)
if b==0: return a
return euclidean_algorithm(b,a%b)
Proof:
We'll show and and
,
,
Runtime analysis:
Fact:
Proof:
Since , and , , and in worst case is , so
(linear in size of bits input)