一种新的模除法算法及其应用
A New Modular Division Algorithm and Applications
摘要:
提出了一种新的模除法$u/v\bmod β^s$的并行算法,其中$u,\; v,\; β$和$s$均为正整数$(β\ge 2)$ .该算法结合了经典的加法移位乘法方案和一种新的传播进位技术。这种“纸笔逆”({ \em PPI})算法更适合于以“最低有效位优先”流水线方式的脉动并行化。虽然它在性能(时间复杂度、工作量、效率)方面与Jebelean的模除法算法~ \cite{jeb2}相当,但当输入量较大时,{ \em PPI}算法的线性并行化优于后者。{ \em PPI}算法的并行化版本导致了各种应用,例如两个长整数的精确除法和数字模运算(dmod)。它也适用于有理数的周期的确定以及它们在任何基$β\ge 2$中的$p$-进展开。
英文摘要:
The present paper proposes a new parallel algorithm for the modular division $u/v\bmod β^s$, where $u,\; v,\; β$ and $s$ are positive integers $(β\ge 2)$. The algorithm combines the classical add-and-shift multiplication scheme with a new propagation carry technique. This "Pen and Paper Inverse" ({\em PPI}) algorithm, is better suited for systolic parallelization in a "least-significant digit first" pipelined manner. Although it is equivalent to Jebelean's modular division algorithm~\cite{jeb2} in terms of performance (time complexity, work, efficiency), the linear parallelization of the {\em PPI} algorithm improves on the latter when the input size is large. The parallelized versions of the {\em PPI} algorithm leads to various applications, such as the exact division and the digit modulus operation (dmod) of two long integers. It is also applied to the determination of the periods of rational numbers as well as their $p$-adic expansion in any radix $β\ge 2$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。