Bach's algorithm

Bach's algorithm

Bach's algorithm is a probabilistic polynomial time algorithm for generating random numbers along with their factorization, 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.

Kalai's algorithm is a simpler but less efficient way of doing the same thing.

Overview

Bach's algorithm produces a number "x" uniformly at random between a given limit "N" and "N"/2, specifically frac{N}{2} < x le N, along with its factorization. It does this by picking a prime number "p" and an exponent "a" such that p^a le N, according to a certain distribution. Bach's algorithm is then recursively applied to generate a number "y" uniformly at random between "M" and "M"/2, where M = frac{N}{p^a}, along with the factorization of "y". It then sets x = p^{a}y, and appends p^a to the factorization of "y" to produce the factorization of "x". This gives "x" which logarithmic distribution over the desired range; rejection sampling is then used to get a uniform distribution.

References

* 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 [http://www.cs.cmu.edu/afs/cs.cmu.edu/academic/class/15750-s02/www/dartboard.pdf here] .
* Bach, Eric. "How to Generate Factored Random Numbers", SIAM Journal of Computing, 17 (1988), pp 179-193.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Williams' p + 1 algorithm — In computational number theory, Williams p + 1 algorithm is an integer factorization algorithm, one of the family of algebraic group factorisation algorithms. It was invented by Hugh C. Williams in 1982. It works well if the number N to be… …   Wikipedia

  • Cipolla's algorithm — In computational number theory, Cipolla s algorithm is a technique for solving a congruence of the form x2 = n, where , so n is the square of x, and where p is an odd prime. Here denotes the finite field with p elements; . Th …   Wikipedia

  • List of mathematics articles (B) — NOTOC B B spline B* algebra B* search algorithm B,C,K,W system BA model Ba space Babuška Lax Milgram theorem Baby Monster group Baby step giant step Babylonian mathematics Babylonian numerals Bach tensor Bach s algorithm Bachmann–Howard ordinal… …   Wikipedia

  • Quadratic residue — In number theory, an integer q is called a quadratic residue modulo n if it is congruent to a perfect square modulo n; i.e., if there exists an integer x such that: Otherwise, q is called a quadratic nonresidue modulo n. Originally an abstract… …   Wikipedia

  • List of important publications in mathematics — One of the oldest surviving fragments of Euclid s Elements, found at Oxyrhynchus and dated to circa AD 100. The diagram accompanies Book II, Proposition 5.[1] This is a list of important publications in mathematics, organized by field. Some… …   Wikipedia

  • Miller–Rabin primality test — The Miller–Rabin primality test or Rabin–Miller primality test is a primality test: an algorithm which determines whether a given number is prime, similar to the Fermat primality test and the Solovay–Strassen primality test. Its original version …   Wikipedia

  • Jacobi symbol — The Jacobi symbol is a generalization of the Legendre symbol introduced by Jacobi in 1837 [C.G.J.Jacobi Uber die Kreisteilung und ihre Anwendung auf die Zahlentheorie , Bericht Ak. Wiss. Berlin (1837) pp 127 136] . It is of theoretical interest… …   Wikipedia

  • electronic instrument — ▪ music Introduction       any musical instrument that produces or modifies sounds by electric, and usually electronic, means. The electronic element in such music is determined by the composer, and the sounds themselves are made or changed… …   Universalium

  • List of mathematics articles (G) — NOTOC G G₂ G delta space G networks Gδ set G structure G test G127 G2 manifold G2 structure Gabor atom Gabor filter Gabor transform Gabor Wigner transform Gabow s algorithm Gabriel graph Gabriel s Horn Gain graph Gain group Galerkin method… …   Wikipedia

  • Well-Tempered Clavier — The Well Tempered Clavier ( Das Wohltemperirte Clavier in the original old German spelling) [In the German of Bach s time the Clavier was a generic name meaning keyboard instrument, most typically the harpsichord or clavichord mdash; but not… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”