10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

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.

9.5 Large-integer multiplication 489<br />

and the acyclic convolution of x, y is a signal u = x ×A y having 2D elements<br />

given by<br />

un = <br />

xiyj,<br />

i+j=n<br />

for n ∈{0,...,2D − 2}, together with the assignment u2D−1 = 0. Finally, the<br />

half-cyclic convolution of x, y is the length-D signal x ×H y consisting of the<br />

first D elements of the acyclic convolution u.<br />

These fundamental convolutions are closely related, as is seen in the following<br />

result. In such statements we interpret the sum of two signals c = a + b in<br />

elementwise fashion; that is, cn = an + bn for relevant indices n. Likewise,<br />

a scalar-signal product qa, withq a number and a a signal, is the signal<br />

(qan). We shall require the notion of the splitting of signals (of even length)<br />

into halves, so we denote by L(a),H(a), respectively, the lower-indexed and<br />

higher-indexed halves of a. That is, from c = a ∪ b the natural, left-right,<br />

concatenation of two signals of equal length, we shall have L(c) = a and<br />

H(c) =b.<br />

Theorem 9.5.10. Let signals x, y have the same length D. Then the various<br />

convolutions are related as follows (it is assumed that in the relevant domain<br />

to which signal elements belong, 2 −1 exists):<br />

Furthermore,<br />

x ×H y = 1<br />

2 ((x × y)+(x ×− y)).<br />

x ×A y =(x ×H y) ∪ 1<br />

2 ((x × y) − (x ×− y)).<br />

Finally, if the length D is even and xj,yj =0for j ≥ D/2, then<br />

L(x) ×A L(y) =x × y = x ×− y.<br />

These interrelations allow us to use certain algorithms more universally.<br />

For example, a pair of algorithms for cyclic and negacyclic can be used to<br />

extract both the half-cyclic or the acyclic, and so on. In the final statement<br />

of the theorem, we have introduced the notion of “zero padding,” which in<br />

practice amounts to appending D zeros to signals already of length D, sothat<br />

the signals’ acyclic convolution is identical to the cyclic (or the negacyclic)<br />

convolution of the two padded sequences.<br />

The connection between convolution and the DFT of the previous section<br />

is evident in the following celebrated theorem, wherein we refer to the dyadic<br />

operator ∗, under which a signal z = x ∗ y has elements zn = xnyn:<br />

Theorem 9.5.11 (Convolution theorem). Let signals x, y have the same<br />

length D. Then the cyclic convolution of x, y satisfies<br />

x × y = DFT −1 (DFT(x) ∗ DFT(y)),

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

Saved successfully!

Ooh no, something went wrong!