Long rational and Gaussian integer multiplication
Abstract
Long integer multiplication is a fundamental operation in computational algebra, heavily relying on Toom--Cook and related evaluation-interpolation algorithms. Conventional wisdom dictates that multiplication on the Gaussian integers is reduced to standard rational integer multiplication, since is a ring extension of . We show that this approach is far from optimal and moreover inverting this established paradigm, that is reducing rational to Gaussian multiplication, leads to faster rational integer multiplication algorithms. We introduce a novel Toom--Cook framework that reduces rational long integer multiplication to Gaussian integer multiplication, yielding a strictly more efficient computational pipeline. By taking advantage of the special properties of the rational integer domain inside the Gaussian integers, we achieve a more favourable algebraic structure that reduces the overall arithmetic cost in every metric. To validate this theoretical shift, we provide a complete implementation of our algorithm. Benchmarks demonstrate that our approach outperforms the highly optimised GNU Multiple Precision Arithmetic Library (GMP) by up to 29\%, bridging a fundamental theoretical insight with significant practical improvements in high-performance computer algebra.
Create a lesson
Related papers
One partition function call to rule them all: Efficiently computing the equilibrium landscape of multiple nucleic acid strands
Shared title terminology · Ahmed Shalaby, Damien Woods
Even Faster Algorithms for Bounded Integer Programming
Shared title terminology · Lin Chen, Yuchen Mao, Guochuan Zhang
Integer Programming with Polyhedral Constraints on the Image
Shared title terminology · Anubhav Dhar, Tim Randolph, Karol Węgrzycki
A Little Length Slack Goes a Long Way in Planar Length-Constrained Network Design
Shared title terminology · D Ellis Hershkowitz, Richard Z Huang, Rhea Jain et al.
Canonical Truncation for Mixed-Integer and Combinatorial n-Fold Optimization
Shared title terminology · Klaus Jansen, Felix Ohnesorge, Björn Schumacher
Multiple-Choice Knapsack with Small Items
Shared title terminology · Jakub Pawlewicz