多精度整数的高效卡拉茨uba乘法
Space-Efficient Karatsuba Multiplication for Multi-Precision Integers
AI总结:
本文改进了多精度整数乘法的卡拉茨uba算法,降低空间复杂度并解决进位问题,提供数值比较结果。
摘要:
传统卡拉茨uba算法用于多项式和多精度整数乘法的时间复杂度为O(n^{1.59}),空间复杂度为O(n)。Roche提出改进算法,保持相同时间复杂度但空间复杂度降至O(log n)。本文针对多精度整数的进位问题,提供了详细解决方案,并给出了学校算法、传统卡拉茨uba算法和高效卡拉茨uba算法的数值比较。
英文摘要:
The traditional Karatsuba algorithm for the multiplication of polynomials and multi-precision integers has a time complexity of $O(n^{1.59})$ and a space complexity of $O(n)$. Roche proposed an improved algorithm with the same $O(n^{1.59})$ time complexity but with a much reduced $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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。