An O(M(n) log n) algorithm for the Jacobi symbol

Richard P. Brent, Paul Zimmermann

    Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

    12 Citations (Scopus)

    Abstract

    The best known algorithm to compute the Jacobi symbol of two n-bit integers runs in time O(M(n)logn), using Schönhage's fast continued fraction algorithm combined with an identity due to Gauss. We give a different O(M(n)logn) algorithm based on the binary recursive gcd algorithm of Stehlé and Zimmermann. Our implementation - which to our knowledge is the first to run in time O(M(n)logn) - is faster than GMP's quadratic implementation for inputs larger than about 10000 decimal digits.

    Original languageEnglish
    Title of host publicationAlgorithmic Number Theory - 9th International Symposium, ANTS-IX, Proceedings
    Pages83-95
    Number of pages13
    DOIs
    Publication statusPublished - 2010
    Event9th International Symposium on Algorithmic Number Theory, ANTS-IX - Nancy, France
    Duration: 19 Jul 201023 Jul 2010

    Publication series

    NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
    Volume6197 LNCS
    ISSN (Print)0302-9743
    ISSN (Electronic)1611-3349

    Conference

    Conference9th International Symposium on Algorithmic Number Theory, ANTS-IX
    Country/TerritoryFrance
    CityNancy
    Period19/07/1023/07/10

    Fingerprint

    Dive into the research topics of 'An O(M(n) log n) algorithm for the Jacobi symbol'. Together they form a unique fingerprint.

    Cite this