English

Space-Efficient Karatsuba Multiplication for Multi-Precision Integers

Numerical Analysis 2016-05-24 v1

Abstract

The traditional Karatsuba algorithm for the multiplication of polynomials and multi-precision integers has a time complexity of O(n1.59)O(n^{1.59}) and a space complexity of O(n)O(n). Roche proposed an improved algorithm with the same O(n1.59)O(n^{1.59}) time complexity but with a much reduced O(logn)O(\log n) space complexity. In Roche's paper details were provided for multiplication of polynomials, but not for multi-precision integers. Multi-precision integers differ from polynomials by the presence of carries, which poses difficulties in implementing Roche's scheme in multi-precision integers. This paper provides a detailed solution to these difficulties. Finally, numerical comparisons between the schoolbook, traditional Karatsuba, and space-efficient Karatsuba algorithms are provided.

Keywords

Cite

@article{arxiv.1605.06760,
  title  = {Space-Efficient Karatsuba Multiplication for Multi-Precision Integers},
  author = {Yiping Cheng},
  journal= {arXiv preprint arXiv:1605.06760},
  year   = {2016}
}

Comments

8 pages, 1 figure

R2 v1 2026-06-22T14:06:37.378Z