Submitted On 16-APR-1999
OlliH
Just to let you know... I wrote a quick and dirty
implementation of karatsuba multiplication(in java
language), which is faster than BigInteger multiply
method when doing multiplications with very large
numbers. Multiplication with FFT should be even
faster, and obviously same algorithms in native
code in JAVA runtime environment would be much
faster than interpreted JAVA code.
Submitted On 17-MAY-1999
OlliH
A small correction. GNU multipe precision arithmetic library does not seem to
use faster algorithms for multiplication, just optimized code.
Submitted On 08-MAY-2005
eliasen
A correction to your correction. GMP does indeed use faster algorithms for multiplication: Karatsuba, 3-way Toom-Cook, and then FFT in that order.
You don't think they get that amazing speed by using the dumb O(n^2) algorithm, do you?
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|