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.
Preview
Unable to display preview. Download preview PDF.
References
A. Karatsuba and Yu. Ofman. Multiplication of many-digital numbers by automatic computers. Doklady Akademii nauk SSSR, 145(2), 1962. (in Russian).
A. Karatsuba and Yu. Ofman. Multiplication of multidigit numbers on automata. Soviet physics doklady, 7(7), 1963.
D. E. Knuth. Seminumerical Algorithms, volume 2 of The Art of Computer Programming. Addison-Wesley, second edition, 1981.
Donald E. Knuth, Ronald L. Graham, and Oren Patashnik. Concrete Mathematics. Addison-Wesley, 1989.
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.
Author information
Authors and Affiliations
Editor information
Rights 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