首页> 外文期刊>ScientificWorldJournal >A Fast Algorithm for Computing Binomial Coefficients Modulo Powers of Two
【24h】

A Fast Algorithm for Computing Binomial Coefficients Modulo Powers of Two

机译:一种快速算法,用于计算二进制系数的二项式系数模数

获取原文
获取外文期刊封面目录资料

摘要

I present a new algorithm for computing binomial coefficients modulo2N. The proposed method has anO(N3·Multiplication(N)+N4)preprocessing time, after which a binomial coefficientC(P,Q)with0≤Q≤P≤2N-1can be computed modulo2NinO(N2·log(N)·Multiplication(N))time.Multiplication(N)denotes the time complexity of multiplying twoN-bit numbers, which can range fromO(N2)toO(N·log(N)·log(log(N)))or better. Thus, the overall time complexity for evaluatingMbinomial coefficientsC(P,Q)modulo2Nwith0≤Q≤P≤2N-1isO((N3+M·N2·log(N))·Multiplication(N)+N4). After preprocessing, we can actually compute binomial coefficients modulo any2RwithR≤N. For larger values ofPandQ, variations of Lucas’ theorem must be used first in order to reduce the computation to the evaluation of multipleOlogPbinomial coefficientsC(P′,Q′)(or restricted types of factorialsP′!) modulo2Nwith0≤Q′≤P′≤2N-1.
机译:我提出了一种用于计算二项式系数模数2n的新算法。所提出的方法具有ANO(n3·乘法(n)+ n4)预处理时间,之后将计算modulo2nino(n2·log(n)·乘法(n2·log(n)·乘法( n))时间。因此,对评估的总时间复杂度(p,q)modulo2nwith0≤q≤p≤2n-1iso((n3 + m·n2·log(n))·乘法(n)+ n4)。在预处理之后,我们实际上可以计算二项式系数模数ModuloAny2rwithr≤n。对于Pandq的较大值,必须首先使用LUCAS定理的变化,以便将计算减少到Outlumologpbinomial系数C(P',Q')(或受限类型的因子'!)modulo2nwith0≤q'≤p'≤p'≤p'≤p'≤ 2N-1。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号