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
research
04/18/2023

Revisiting Fast Fourier multiplication algorithms on quotient rings

This work formalizes efficient Fast Fourier-based multiplication algorit...
research
11/23/2020

Speeding up decimal multiplication

Decimal multiplication is the task of multiplying two numbers in base 10...
research
11/17/2019

Faster Integer Multiplication Using Preprocessing

A New Number Theoretic Transform(NTT), which is a form of FFT, is introd...
research
09/05/2016

Automatic Library Generation for Modular Polynomial Multiplication

Polynomial multiplication is a key algorithm underlying computer algebra...
research
07/06/2022

Computing elementary functions using multi-prime argument reduction

We describe an algorithm for arbitrary-precision computation of the elem...
research
12/03/2019

The Polynomial Transform

We explore a new form of DFT, which we call the Polynomial Transform. It...
research
03/30/2018

Multiplying boolean Polynomials with Frobenius Partitions in Additive Fast Fourier Transform

We show a new algorithm and its implementation for multiplying bit-polyn...

Please sign up or login with your details

Forgot password? Click here to reset