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.

216 APPENDIX A. ALGEBRAIC BACKGROUND<br />

so, despite the apparent asymmetry <strong>of</strong> the construction, c ≡ b (mod N) as<br />

well.<br />

In fact, we need not restrict ourselves to X being an integer: X, a and b<br />

may as well be polynomials (but M and N are still integers).<br />

Algorithm 40 (Chinese Remainder (Polynomial <strong>for</strong>m))<br />

Input: Polynomials a = ∑ n<br />

i=0 a ix i , b = ∑ n<br />

i=0 b ix i , and integers M and N<br />

(with gcd(M, N) = 1).<br />

Output: A polynomial = ∑ n<br />

i=0 c ix i satisfying Theorem 35.<br />

Compute λ, µ such that λM + µN = 1;<br />

#The process is analogous to Lemma 1 (page 45)<br />

<strong>for</strong> i := 0 to n do<br />

c i :=a i + λM(b i − a i );<br />

A.4 Chinese Remainder Theorem <strong>for</strong> Polynomials<br />

The theory <strong>of</strong> the previous section has an obvious generalisation if we replace<br />

Z by K[y] <strong>for</strong> a field K, and an equivalent application to sections 4.2–4.3.<br />

Theorem 36 (Chinese Remainder Theorem <strong>for</strong> polynomials) Two congruences<br />

X ≡ a (mod M) (A.6)<br />

and<br />

X ≡ b (mod N), (A.7)<br />

where M and N are relatively prime polynomials in K[y], are precisely equivalent<br />

to one congruence<br />

X ≡ c (mod MN). (A.8)<br />

By this we mean that, given any a, b, M and N, we can find such a c that<br />

satisfaction <strong>of</strong> (A.6) and (A.7) is precisely equivalent to satisfying (A.8). The<br />

converse direction, finding (A.6) and (A.7) given (A.8), is trivial: one takes a<br />

to be c (mod M) and b to be d (mod N).<br />

Algorithm 41 (Chinese Remainder <strong>for</strong> Polynomials)<br />

Input: a, b, M and N ∈ K[y] (with gcd(M, N) = 1).<br />

Output: c satisfying Theorem 36.<br />

Compute λ, µ such that λM + µN = 1;<br />

#As in Lemma 1 (page 45). Note µ isn’t needed in practice.<br />

c:=a + λM(b − a);

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

Saved successfully!

Ooh no, something went wrong!