表示乘法算法的指令序列
Instruction sequences expressing multiplication algorithms
摘要:
对于位串上的每个函数,其对任何给定长度的位串的限制可以通过仅包含用于设置和获取布尔寄存器的内容的指令、前向跳转指令和终止指令的有限指令序列来计算。我们描述了这种类型的指令序列,根据长乘法算法和Karatsuba乘法算法,对于固定但任意的$N > 0$,计算位串上的函数,该位串对小于$2^N$的自然数的乘法进行建模,相对于它们由长度为$N$的位串的二进制表示。我们发现,只有当所涉及的位串的长度大于$2^8$时,表达前一种算法的指令序列才会比表达后一种算法的指令序列更长。我们还进入使用的指令序列与向后跳转指令表示长乘法算法。如果所涉及的位串的长度大于$2$,则这导致指令序列比其他两个短。
英文摘要:
For each function on bit strings, its restriction to bit strings of any given length can be computed by a finite instruction sequence that contains only instructions to set and get the content of Boolean registers, forward jump instructions, and a termination instruction. We describe instruction sequences of this kind that compute the function on bit strings that models multiplication on natural numbers less than $2^N$ with respect to their binary representation by bit strings of length $N$, for a fixed but arbitrary $N > 0$, according to the long multiplication algorithm and the Karatsuba multiplication algorithm. We find among other things that the instruction sequence expressing the former algorithm is longer than the one expressing the latter algorithm only if the length of the bit strings involved is greater than $2^8$. We also go into the use of an instruction sequence with backward jump instructions for expressing the long multiplication algorithm. This leads to an instruction sequence that it is shorter than the other two if the length of the bit strings involved is greater than $2$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。