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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.5. HENSEL LIFTING 159<br />

Figure 5.7: Algorithm 28<br />

Algorithm 28 (Hensel Lifting (Quadratic version))<br />

Input: f, g (1)<br />

1 , . . . , g(1) n , p, k with f primitive and ≡ ∏ g (1)<br />

i (mod p)<br />

Output: g 1 , . . . , g n with f ≡ ∏ g i (mod p 2k )<br />

<strong>for</strong> j := 1 . . . n<br />

g (1)<br />

j := lc(f)<br />

lc(g (1) ) g(1) j<br />

j<br />

F := lc(f) n−1 f #leading coefficients imposed<br />

<strong>for</strong> i := 1 . . . k #f = ∏ g j (mod p 2i−1 )<br />

∆ := F − ∏ j g j (mod p 2i )<br />

p 2i−1<br />

<strong>for</strong> j := 1 . . . n<br />

g (r)<br />

j , h (r)<br />

j := Algorithm 4(g j , ∏ l≠j g l) in Z p 2<br />

g (c)<br />

j<br />

:= ∆ ∗ h (r)<br />

j (mod (p 2i−1 , g j ))<br />

g j := g j + p 2i−1 g (c)<br />

j<br />

#f = ∏ g j (mod p 2i )<br />

i−1 [x]<br />

<strong>for</strong> j := 1 . . . n<br />

g j := pp(g j ) #undo the imposed leading coefficients<br />

return (g 1 , . . . , g n )

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

Saved successfully!

Ooh no, something went wrong!