19.07.2014 Views

Contents - Student subdomain for University of Bath

Contents - Student subdomain for University of Bath

Contents - Student subdomain for University of Bath

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

162 CHAPTER 5. P -ADIC METHODS<br />

Figure 5.8: Overview <strong>of</strong> Factoring Algorithm<br />

Algorithm 30 (Factor over Z)<br />

Input: A primitive square-free f(x) ∈ Z[x]<br />

Output: The factorization <strong>of</strong> f into irreducible polynomials over the integers.<br />

p 1 := find_prime(f);<br />

F 1 :=Proposition 51(f, p 1 )<br />

if F 1 is a singleton<br />

return f<br />

S :=AllowableDegrees(F 1 )<br />

<strong>for</strong> i := 2, . . . , 5 #5 from [Mus78]<br />

p i := find_prime(f);<br />

F i :=Proposition 51(f, p i )<br />

S := S∩AllowableDegrees(F i )<br />

if S = ∅<br />

return f<br />

p :=best({p i }); F := F i ; #‘best’ in terms <strong>of</strong> fewest factors<br />

F :=Algorithm 26(f, F, p, log p (2LM(f)))<br />

return Algorithm 29(p log p (2LM(f)) , f, F )<br />

find_prime(f) returns a prime p such that f remains square-free modulo p.<br />

AllowableDegrees(F ) returns the set <strong>of</strong> allowable proper factor degrees from<br />

a modular factorization.<br />

Algorithm 29 can be replaced by any <strong>of</strong> improvements 1–5 on pages 161–161.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!