关于平方乘算法的历史
On the History of the Square and Multiply Algorithm
AI总结:
本文通过原始文献分析,追溯平方乘算法(又称二进制指数运算或重复平方)从古印度Pingala到al-Kashi的起源与形式化过程。
摘要:
平方乘算法,也称为二进制指数运算或重复平方,是一种用于快速指数运算的技术,常用于现代密码学和计算数论。尽管其重要性,该算法的历史起源尚不确定。本文通过原始文献分析,批判性地考察了该算法的起源和形式化过程。我们重点关注Jamshid al-Kashi在15世纪所著的《Miftah al-Hisab》,其中该算法被明确阐述为一种通用方法,并且al-Kashi声称这是他的创新。为了提供背景,我们追溯了al-Uqlidisi和al-Biruni作品中更早的连续平方实例,他们将此技术用于特定计算,但未将其形式化为通用过程。已知最早关于这种计算方法的工作见于古印度Pingala的韵律学研究(约公元前200年)。尽管它尚未完全发展为通用技术,但Pingala的工作似乎包含了该算法的概念基础,即利用正整数的二进制表示。通过映射这一智力进展,本文阐述了在现代计算中占据重要地位的算法的历史背景。
英文摘要:
The square-and-multiply algorithm, also known as binary exponentiation or repeated squaring, is a standard method for fast exponentiation in modern computation. Its historical origins, however, remain uncertain. This paper examines the emergence and progressive formalization of the method through selected primary sources. Particular attention is given to Jamshid al-Kashi's fifteenth-century Miftah al-Hisab, where the procedure is presented explicitly as a general computational method and claimed by al-Kashi as his own innovation. Earlier instances of successive squaring are identified in the works of al-Uqlidisi and al-Biruni, although in these cases the technique appears in particular calculations rather than as a fully articulated general rule. The earliest known antecedent is found in Pingala's prosodic studies in ancient India (c. 200 BCE), which seem to presuppose the conceptual basis of the method in their use of binary representation. As part of the historical development, Legendre's 1798 worked example is one of the earliest documented European use of the algorithm which appears as a subordinate step within a specific number-theoretic computation. The evidence suggests not a single continuous line of transmission, but the repeated independent reappearance of related procedures in distinct contexts. By the twentieth century, square-and-multiply became a special case within the broader theory of addition chains. By exploring this intellectual progression, this paper sheds some light on the historical background of an algorithm that is prominent in modern computation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。