计算机科学 > 数据结构与算法
[提交于 2010年4月13日]
标题:An O(M(n) log n) algorithm for the Jacobi symbol
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:The best known algorithm to compute the Jacobi symbol of two n-bit integers runs in time O(M(n) log n), using Sch\"onhage's fast continued fraction algorithm combined with an identity due to Gauss. We give a different O(M(n) log n) algorithm based on the binary recursive gcd algorithm of Stehl\'e and Zimmermann. Our implementation - which to our knowledge is the first to run in time O(M(n) log n) - is faster than GMP's quadratic implementation for inputs larger than about 10000 decimal digits.
提交历史
来自:Richard Brent[v1] 2010年4月13日 星期二 02:15:09 UTC