【24h】

Long Integers and Polynomial Evaluation with Estrin's Scheme

机译:长整数和使用Estrin方案的多项式求值

获取原文
获取原文并翻译 | 示例

摘要

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 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号