Putting Fürer Algorithm into Practice with the BPAS Library

11/05/2018
by   Sviatoslav Covanov, et al.
0

Fast algorithms for integer and polynomial multiplication play an important role in scientific computing as well as in other disciplines. In 1971, Schönhage and Strassen designed an algorithm that improved the multiplication time for two integers of at most n bits to O(log n loglog n). In 2007, Martin Fürer presented a new algorithm that runs in O (n log n · 2^O(log^* n)), where log^* n is the iterated logarithm of n. We explain how we can put Fürer's ideas into practice for multiplying polynomials over a prime field Z / p Z, for which p is a Generalized Fermat prime of the form p = r^k + 1 where k is a power of 2 and r is of machine word size. When k is at least 8, we show that multiplication inside such a prime field can be efficiently implemented via Fast Fourier Transform (FFT). Taking advantage of Cooley-Tukey tensor formula and the fact that r is a 2k-th primitive root of unity in Z / p Z, we obtain an efficient implementation of FFT over Z / p Z. This implementation outperforms comparable implementations either using other encodings of Z / p Z or other ways to perform multiplication in Z / p Z.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset