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.

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

the Cooley–Tukey form, the phrase meaning that as in the Danielson–Lanczos<br />

splitting identity (9.22), we cut up (decimate) the time domain—the index on<br />

the original signal. The Gentleman–Sande FFT falls into the “decimation in<br />

frequency” class, for which a similar game is played on the k index of the<br />

transform elements Xk.<br />

Algorithm 9.5.5 (FFT, in-place, in-order loop forms with bit-scramble).<br />

Given a (D =2 d )-element signal x, the functions herein perform an FFT via<br />

nested loops. The two essential FFTs are laid out as decimation-in-time (Cooley–<br />

Tukey) and decimation-in-frequency (Gentleman–Sande) forms. Note that these<br />

forms can be applied symbolically, or in number-theoretical transform mode, by<br />

identifying properly the root of unity and the ring or field operations.<br />

1. [Cooley–Tukey, decimation-in-time FFT]<br />

FFT(x) {<br />

scramble(x);<br />

n = len(x);<br />

for(m =1; m

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

Saved successfully!

Ooh no, something went wrong!