-
Notifications
You must be signed in to change notification settings - Fork 209
Open
Description
Implement better multiplication for large numbers.
Multiplication currently uses Toom-3, which is O(n^1.47) for n BigDigits. This can be improved to O(n log n) using the Fast Fourier Transform (on complex numbers with sufficient precision) or Number Theoretic Transform (using modular arithmetic with multiple primes), or slightly worse O(n log n log log n) using the Schönhage–Strassen algorithm. I am leaning towards the latter because it's only slightly slower asymptotically, but simpler, so I suspect it might actually be faster for all practical sizes.
It will probably make sense to split algorithms into separate modules.
chirsz-ever and sebastianv89
Metadata
Metadata
Assignees
Labels
No labels