fbpx
Wikipedia

Bach's algorithm

Bach's algorithm[1] is a probabilistic polynomial time algorithm for generating random numbers along with their factorizations, named after its discoverer, Eric Bach. It is of interest because no algorithm is known that efficiently factors numbers, so the straightforward method, namely generating a random number and then factoring it, is impractical.

The algorithm performs, in expectation, O(log n) primality tests.

A simpler, but less efficient algorithm (performing, in expectation, primality tests), is due to Adam Kalai.[2]

Overview

Bach's algorithm produces a number   uniformly at random in the range   (for a given input  ), along with its factorization. It does this by picking a prime number   and an exponent   such that  , according to a certain distribution. The algorithm then recursively generates a number   in the range  , where  , along with the factorization of  . It then sets  , and appends   to the factorization of   to produce the factorization of  . This gives   with logarithmic distribution over the desired range; rejection sampling is then used to get a uniform distribution.

References

  1. ^ Bach, Eric (1988), "How to generate factored random numbers", SIAM Journal on Computing, 17 (2): 179–193, doi:10.1137/0217012, MR 0935336
  2. ^ Kalai, Adam (2003), "Generating random factored numbers, easily", Journal of Cryptology, 16 (4): 287–289, doi:10.1007/s00145-003-0051-5, MR 2002046, S2CID 17271671

Further reading

  • Bach, Eric. Analytic methods in the Analysis and Design of Number-Theoretic Algorithms, MIT Press, 1984. Chapter 2, "Generation of Random Factorizations", part of which is available online here.

bach, algorithm, this, article, relies, excessively, references, primary, sources, please, improve, this, article, adding, secondary, tertiary, sources, find, sources, news, newspapers, books, scholar, jstor, august, 2021, learn, when, remove, this, template, . This article relies excessively on references to primary sources Please improve this article by adding secondary or tertiary sources Find sources Bach s algorithm news newspapers books scholar JSTOR August 2021 Learn how and when to remove this template message Bach s algorithm 1 is a probabilistic polynomial time algorithm for generating random numbers along with their factorizations named after its discoverer Eric Bach It is of interest because no algorithm is known that efficiently factors numbers so the straightforward method namely generating a random number and then factoring it is impractical The algorithm performs in expectation O log n primality tests A simpler but less efficient algorithm performing in expectation O log 2 n displaystyle O log 2 n primality tests is due to Adam Kalai 2 Overview EditThis section does not cite any sources Please help improve this section by adding citations to reliable sources Unsourced material may be challenged and removed June 2020 Learn how and when to remove this template message Bach s algorithm produces a number x displaystyle x uniformly at random in the range N 2 lt x N displaystyle N 2 lt x leq N for a given input N displaystyle N along with its factorization It does this by picking a prime number p displaystyle p and an exponent a displaystyle a such that p a N displaystyle p a leq N according to a certain distribution The algorithm then recursively generates a number y displaystyle y in the range M 2 lt y M displaystyle M 2 lt y leq M where M N p a displaystyle M N p a along with the factorization of y displaystyle y It then sets x p a y displaystyle x p a y and appends p a displaystyle p a to the factorization of y displaystyle y to produce the factorization of x displaystyle x This gives x displaystyle x with logarithmic distribution over the desired range rejection sampling is then used to get a uniform distribution References Edit Bach Eric 1988 How to generate factored random numbers SIAM Journal on Computing 17 2 179 193 doi 10 1137 0217012 MR 0935336 Kalai Adam 2003 Generating random factored numbers easily Journal of Cryptology 16 4 287 289 doi 10 1007 s00145 003 0051 5 MR 2002046 S2CID 17271671Further reading EditBach Eric Analytic methods in the Analysis and Design of Number Theoretic Algorithms MIT Press 1984 Chapter 2 Generation of Random Factorizations part of which is available online here This algorithms or data structures related article is a stub You can help Wikipedia by expanding it vte Retrieved from https en wikipedia org w index php title Bach 27s algorithm amp oldid 1055320990, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.