【24h】

Long Integers and Polynomial Evaluation with Estrin's Scheme

机译:长整数和多项式评估与伊斯特林的计划

获取原文

摘要

In this paper the problem of univariate polynomial evaluation is considered. When both polynomial coefficients and the evaluation "point" are integers, unbalanced multiplications (one factor having many more digits than the other one) in classical Ruffini-Horner rule do not let computations completely benefit of sub quadratic methods, like Karatsuba, Toom-Cook and Schonhage-Strassen's. We face this problem by applying an approach originally proposed by Estrin to augment parallelism exploitation in computation. We show that it is also effective in the sequential case, whenever data dimensions grow, e.g. in the long integer case. We add some adjustments to Estrin's proposal obtaining a smoother behavior around corner cases, and to avoid performance degradation when most of the coefficients are zero. This way, a new general algorithm is obtained, improving both theoretical complexity and actual performance. The algorithm itself is very simple, and its use can be usefully extended to evaluation of polynomials on rationals or on polynomials (polynomial composition). Some tests, results and comparisons obtained with PARI/GP are also presented, for both dense and "sparse" polynomials.
机译:本文考虑了单变量多项式评价的问题。当多项式系数和评估“点”都是整数时,在古典ruffini-Horner规则中的不平衡乘法(具有比另一个数字的一​​个因素多于另一个数字),不要让计算完全受益于子二次方法,如Karatsuba,Toom-cook和Schonhage-strassen的。通过应用最初由estrin提出的方法来增加计算中的并行剥削,我们面临这个问题。我们表明,每当数据尺寸生长时,它在连续情况下也是有效的,例如,在长整数案例中。我们为Estrin的提案添加了一些调整,在拐角盒周围获得更平滑的行为,并且当大多数系数为零时避免性能下降。这样,获得了一种新的综合算法,提高了理论复杂性和实际性能。该算法本身非常简单,并且可以使用它可以利用延伸到对理性或多项式(多项式组合物)的多项式的评估。对于致密和“稀疏”多项式,还呈现了用Pari / GP获得的一些测试,结果和比较。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号