A new algorithm for long integer cube computation with some insight into higher powers

  • Authors:
  • Marco Bodrato;Alberto Zanoni

  • Affiliations:
  • mambaSoft, Torino, Italy;Dipartimento di Scienze Statistiche, Università

  • Venue:
  • CASC'12 Proceedings of the 14th international conference on Computer Algebra in Scientific Computing
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

A new approach for the computation of long integer cube (third power) based on a splitting-in-two divide et impera approach and on a modified Toom-Cook-3 unbalanced method is presented, showing that the "classical" square-and-multiply algorithm is not (always) optimal. The new algorithm is used as a new basic tool to improve long integer exponentiation: different techniques combining binary and ternary exponent expansion are shown. Effective implementations by using the GMP library are tested, and performance comparisons are presented.