无素性检验的随机素数
Random primes without primality testing
摘要:
许多算法要求对随机选择的大素数取模的整数进行计算。在某些情况下,选择一个随机素数的准立方复杂度可以支配总的运行时间。我们提出了一个新的变种的经典D5算法的“动态评估”,适用于一个随机选择的(复合)整数。与过去用于计算场的直积的D5原理不同,我们的方法更简单,因为它只需要在任何模分裂之后遵循单个路径。我们提出的转换可以适用于代数RAM模型中的任何算法,甚至允许随机化。所得到的变换算法避免了任何素数测试,并且将以恒定的正概率具有与原始计算模随机选择的素数相同的结果。作为一个应用,我们演示了如何在拟线性时间内计算未知整数多项式中非零项的确切个数。我们还展示了如何相同的算法变换技术可以用于计算模随机不可约多项式在有限域。
英文摘要:
Numerous algorithms call for computation over the integers modulo a randomly-chosen large prime. In some cases, the quasi-cubic complexity of selecting a random prime can dominate the total running time. We propose a new variant of the classic D5 algorithm for "dynamic evaluation", applied to a randomly-chosen (composite) integer. Unlike the D5 principle which has been used in the past to compute over a direct product of fields, our method is simpler as it only requires following a single path after any modulus splits. The transformation we propose can apply to any algorithm in the algebraic RAM model, even allowing randomization. The resulting transformed algorithm avoids any primality tests and will, with constant positive probability, have the same result as the original computation modulo a randomly-chosen prime. As an application, we demonstrate how to compute the exact number of nonzero terms in an unknown integer polynomial in quasi-linear time. We also show how the same algorithmic transformation technique can be used for computing modulo random irreducible polynomials over a finite field.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。