Skip to main content

Storage allocation for the Karatsuba integer multiplication algorithm

  • Conference paper
  • First Online:
Book cover Design and Implementation of Symbolic Computation Systems (DISCO 1993)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 722))

Abstract

The Karatsuba (or 3-for-4) integer multiplication algorithm needs some amount of auxiliary memory (in addition to the memory needed to store the result). We give sharp upper and lower bounds for the amount of auxiliary storage required and discuss implementation issues. Since we must never allocate too few memory cells, an asymptotic formula is not sufficient. The bounds are 2(n−4 + 3⌈log2(n−3)⌋) and 2(n−6 + 2⌈log2(n−2)⌋), respectively. The formula for the amount of auxiliary storage is obtained by an exact closed-form solution of a recursion formula involving the floor and ceiling functions. Comparing the upper and lower bounds shows that this simple allocation formula does not waste much memory for any input size.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. A. Karatsuba and Yu. Ofman. Multiplication of many-digital numbers by automatic computers. Doklady Akademii nauk SSSR, 145(2), 1962. (in Russian).

    Google Scholar 

  2. A. Karatsuba and Yu. Ofman. Multiplication of multidigit numbers on automata. Soviet physics doklady, 7(7), 1963.

    Google Scholar 

  3. D. E. Knuth. Seminumerical Algorithms, volume 2 of The Art of Computer Programming. Addison-Wesley, second edition, 1981.

    Google Scholar 

  4. Donald E. Knuth, Ronald L. Graham, and Oren Patashnik. Concrete Mathematics. Addison-Wesley, 1989.

    Google Scholar 

  5. Wolfgang W. Kuechlin, David Lutz, and Nicholas Nevin. Integer multiplication in PARSAC-2 on stock microprocessors. In Proc. AAECC-9, New Orleans. Lecture Notes in Computer Science 539. Berlin: Springer 1991.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Alfonso Miola

Rights and permissions

Reprints and permissions

Copyright information

© 1993 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Maeder, R.E. (1993). Storage allocation for the Karatsuba integer multiplication algorithm. In: Miola, A. (eds) Design and Implementation of Symbolic Computation Systems. DISCO 1993. Lecture Notes in Computer Science, vol 722. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0013168

Download citation

  • DOI: https://doi.org/10.1007/BFb0013168

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-57235-0

  • Online ISBN: 978-3-540-47985-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics