When is FFT multiplication of arbitrary-precision polynomials practical?

نویسنده

  • Richard J. Fateman
چکیده

It is well recognized in the computer algebra theory and systems communities that the Fast Fourier Transform (FFT) can be used for multiplying polynomials. Theory predicts that it is fast for “large enough” polynomials. Even so, it appears that no major general-purpose computer algebra system uses the FFT as a general default technique for this purpose. Some provide (optional) access to FFT techniques, so it is possible that a rational decision was made against using FFT. By contrast, the implementors of some more restricted systems, typically specializing in univariate, dense polynomials over finite or infinite fields, seem to think the FFT is good, in practice, even for smallish problems, and so they have made the decision the other way. We provide some benchmarks for polynomial multiplication that the FFT should be good at, and also suggest an alternative version of FFT polynomial multiplication using floating-point numbers that has some nicer properties than the typical finite-field “Number Theoretic Transform” approach. In particular, in spite of the fact that a floating-point FFT gives approximate answers, we can nevertheless use it to produce EXACT answers to a class of polynomial multiplication problems for arbitrary-precision coefficient polynomials, simply by noting that a sufficiently-accurate coefficient, namely error is less than 0.5, we have the exact integer answer. We also have some more data on what “large enough” to warrant the use of FFT, might be.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

ACTA UNIVERSITATIS APULENSIS Special Issue KARATSUBA AND TOOM-COOK METHODS FOR MULTIVARIATE POLYNOMIALS

Karatsuba and Toom-Cook are well-known methods used to efficiently multiply univariate polynomials and long integers. For multivariate polynomials, asymptotically good approaches like Kronecker’s trick combined with FFT become truly effective only when the degree is above some threshold. In this paper we analyze Karatsuba and some of Toom-Cook methods for multivariate polynomials, considering d...

متن کامل

Toom-Cook Multiplication: Some Theoretical and Practical Aspects

Toom-Cook multiprecision multiplication is a well-known multiprecision multiplication method, which can make use of multiprocessor systems. In this paper the Toom-Cook complexity is derived, some explicit proofs of the Toom-Cook interpolation method are given, the even-odd method for interpolation is explained, and certain aspects of a 32-bit C++ and assembler implementation, which is in develo...

متن کامل

Fast evaluation of iterated multiplication of very large polynomials: An application to chinese remainder theory

We consider the problem of exactly computing the number of integers in a Chinese Remainder Representation (crr) whose pseudorank does not equal the rank. We call this number the census. The rank is key in developing crr-intrinsic methods for comparing integers in crr, a problem known to be notoriously difficult. Pseudorank can be computed in highly restrictive computation models. We have develo...

متن کامل

On fast matrix-vector multiplication with a Hankel matrix in multiprecision arithmetics

We present two fast algorithms for matrix-vector multiplication y = Ax, where A is a Hankel matrix. The current asymptotically fastest method is based on the Fast Fourier Transform (FFT), however in multiprecision arithmetics with very high accuracy FFT method is actually slower than schoolbook multiplication for matrix sizes up to n = 8000. One method presented is based on a decomposition of m...

متن کامل

Space-Efficient Karatsuba Multiplication for Multi-Precision Integers

The traditional Karatsuba algorithm for the multiplication of polynomials and multi-precision integers has a time complexity of O(n) and a space complexity of O(n). Roche proposed an improved algorithm with the same O(n) time complexity but with a much reduced O(log n) space complexity. In Roche’s paper details were provided for multiplication of polynomials, but not for multi-precision integer...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006