计算机科学 > 数据结构与算法
[提交于 2019年7月17日]
标题:Efficient computation of the Jacobi symbol
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:The family of left-to-right GCD algorithms reduces input numbers by repeatedly subtracting the smaller number, or multiple of the smaller number, from the larger number. This paper describes how to extend any such algorithm to compute the Jacobi symbol, using a single table lookup per reduction. For both quadratic time GCD algorithms (Euclid, Lehmer) and subquadratic algorithms (Knuth, Sch\"onhage, M\"oller), the additional cost is linear, roughly one table lookup per quotient in the quotient sequence. This method was used for the 2010 rewrite of the Jacobi symbol computation in GMP.
提交历史
来自:Niels Möller[v1] 2019年7月17日 星期三 22:11:22 UTC