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.

9.5 Large-integer multiplication 477<br />

might be sequences of polynomial coefficients, or sequences in general, and<br />

will be denoted by x =(xn), n ∈ [0,D− 1] for some “signal length” D.<br />

The first essential notion is that multiplication is a kind of convolution.<br />

We shall make that connection quite precise later, observing for the moment<br />

that the DFT is a natural transform to employ in convolution problems. For<br />

the DFT has the unique property of converting convolution to a less expensive<br />

dyadic product. We start with a definition:<br />

Definition 9.5.3 (The discrete Fourier transform (DFT)). Let x be a signal<br />

of length D consisting of elements belonging to some algebraic domain<br />

in which D −1 exists, and let g be a primitive D-th root of unity in that domain;<br />

that is, g k = 1 if and only if k ≡ 0(modD). Then the discrete Fourier<br />

transform of x is that signal X = DFT(x) whose elements are<br />

Xk =<br />

D−1 <br />

j=0<br />

with the inverse DFT −1 (X) =x given by<br />

xjg −jk , (9.20)<br />

xj = 1<br />

D−1 <br />

Xkg<br />

D<br />

jk . (9.21)<br />

k=0<br />

That the transform DFT −1 iswell-definedasthecorrectinverseisleftasan<br />

exercise. There are several important manifestations of the DFT:<br />

Complex-field DFT: x, X ∈ C D , g aprimitiveD-throotof1suchase 2πi/D ;<br />

Finite-field DFT: x, X ∈ F D<br />

p k, g aprimitiveD-throotof1inthesamefield;<br />

Integer-ring DFT: x, X ∈ ZD N , g a primitive D-th root of 1 in the ring,<br />

D−1 , g−1 exist.<br />

It should be pointed out that the above are common examples, yet there are<br />

many more possible scenarios. As just one extra example, one may define a<br />

DFT over quadratic fields (see Exercise 9.50).<br />

In the first instance of complex fields, the practical implementations<br />

involve floating-point arithmetic to handle complex numbers (though when<br />

the signal has only real elements, significant optimizations apply, as we shall<br />

see). In the second, finite-field, cases one uses field arithmetic with all terms<br />

reduced (mod p). The third instance, the ring-based DFT, is sometimes<br />

applied simultaneously for N = 2 n − 1andN ′ = 2 n + 1, in which cases<br />

the assignments g = 2 and D = n, D ′ =2n, respectively, can be made when<br />

n is coprime to both N,N ′ .<br />

It should be said that there exists a veritable menagerie of alternative<br />

transforms, many of them depending on basis functions other than the<br />

complex exponential basis functions of the traditional DFT; and often, such<br />

alternatives admit of fast algorithms, or assume real signals, and so on.<br />

Though such transforms lie beyond the scope of the present book, we observe

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

Saved successfully!

Ooh no, something went wrong!