Multiplication algorithm: Difference between revisions

Content deleted Content added
m normalized spacing in comments in pseudocode
Chiph588 (talk | contribs)
m Capitalizes a word.
Line 359:
Clearly the above setting is realized by polynomial multiplication, of two polynomials ''a'' and ''b''. The crucial step now is to use [[Discrete Fourier transform#Polynomial multiplication|Fast Fourier multiplication]] of polynomials to realize the multiplications above faster than in naive ''O(m<sup>2</sup>)'' time.
 
To remain in the modular setting of Fourier transforms, we look for a ring with a ''2m<sup>th</sup>'' root of unity. henceHence we do multiplication modulo ''N'' (and thus in the ''Z/NZ'' [[Ring (mathematics)|ring]]). Further, N must be chosen so that there is no 'wrap around', essentially, no reductions modulo N occur. Thus, the choice of N is crucial. For example, it could be done as,
 
: <math> N = 2^{3w} + 1 </math>