10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

494 Chapter 9 FAST ALGORITHMS FOR LARGE-INTEGER ARITHMETIC<br />

Furthermore, the weighted cyclic convolution of two signals is the signal<br />

z = x ×a y having<br />

zn = 1<br />

<br />

an<br />

j+k≡n (mod D)<br />

(a ∗ x)j(a ∗ y)k. (9.31)<br />

It is clear that the DWT is simply the DFT of the dyadic product signal a ∗ x<br />

consisting of elements ajxj. The considerable advantage of the DWT is that<br />

particular weight signals give rise to useful alternative convolutions. In some<br />

cases, the DWT eliminates the need for the zero padding of the standard FFT<br />

multiplication Algorithm 9.5.12. We first state an important result:<br />

Theorem 9.5.16 (Weighted convolution theorem). Let signals x, y and<br />

weight signal a have the same length D. Then the weighted cyclic convolution<br />

of x, y satisfies<br />

that is to say,<br />

x ×a y = DWT −1 (DWT(x, a) ∗ DWT(y, a),a),<br />

(x ×a y)n = 1<br />

D−1 <br />

(X ∗ Y )kg<br />

Dan<br />

kn .<br />

Thus FFT algorithms may be applied now to weighted convolution. In<br />

particular, one may compute not just the cyclic, but also the negacyclic,<br />

convolution in this manner, because the specific choice of weight signal<br />

k=0<br />

a = A j , j ∈ [0,D− 1]<br />

yields, when A is a primitive 2D-th root of unity in the field, the identity:<br />

x ×− y = x ×a y, (9.32)<br />

which means that the weighted cyclic in this case is the negacyclic. Note that<br />

when the D-th root g has a square root in the field, as is the case with the<br />

complex field arithmetic, we can simply assign A2 = g to effect the negacyclic.<br />

Another interesting instance of generator A,namelywhenAis a primitive 4Dth<br />

root of unity, gives the so-called right-angle convolution [Crandall 1996a].<br />

These observations lead in turn to an important algorithm that has been<br />

used to advantage in modern factorization studies. By using the DWT, the<br />

method obviates zero padding entirely. Consider the problem of multiplication<br />

of two numbers, modulo a Fermat number Fn =22n + 1. This operation can<br />

happen, of course, a great number of times in attempts to factor an Fn. There<br />

are at least three ways to attempt (xy) modFnvia convolution of length-D<br />

signals where D and a power-of-two base B are chosen such that Fn = BD +1:<br />

(1) Zero-pad each of x, y up to length 2D, perform cyclic convolution, do carry<br />

adjust as necessary, take the result (mod Fn).

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

Saved successfully!

Ooh no, something went wrong!