|
|
Line 1: |
Line 1: |
| The '''AKS primality test''' (also known as '''Agrawal–Kayal–Saxena primality test''' and '''cyclotomic AKS test''') is a [[deterministic algorithm|deterministic]] [[primality test|primality-proving]] [[algorithm]] created and published by [[Manindra Agrawal]], [[Neeraj Kayal]], and [[Nitin Saxena]], computer scientists at the [[Indian Institute of Technology Kanpur]], on August 6, 2002, in a paper titled "PRIMES is in P".<ref name="AKS">{{cite journal |first=Manindra |last=Agrawal |first2=Neeraj |last2=Kayal |first3=Nitin |last3=Saxena |url=http://www.cse.iitk.ac.in/users/manindra/algebra/primality_v6.pdf |title=PRIMES is in P |journal=[[Annals of Mathematics]] |volume=160 |year=2004 |issue=2 |pages=781–793 |doi=10.4007/annals.2004.160.781 |jstor=3597229 }}</ref> The algorithm determines whether a number is [[Prime number|prime]] or [[Composite number|composite]] within [[polynomial time]]. The authors received the 2006 [[Gödel Prize]] and the 2006 [[Fulkerson Prize]] for this work.
| | Get the job done from residence is a well known notion we occur throughout these times.<br><br>It is a additional flexible solution to earning an profits than other common solutions. Performing from dwelling usually means the fulfillment of getting employed with a blend of factors, the most distinguished of which is Benefit. What can make it so interesting is the advantage of location and time.<br>The rising rate of visitors jams, value of fuel, limited-staffing in company places of work and the straightforward availability of the online and pcs are a few reasons that have built it a really promising indicates to generate cash flow. Offered down below are a number of extra good reasons that I imagine, make functioning from dwelling an captivating alternative.<br><br>Work from house saves the time put in touring to place of work and back again. This time can be utilised to raise efficiency. You can set this time to better use and even give additional time at home. Functioning from residence implies you never have to be concerned about dressing up for operate.<br>Just get out of bed and start your working day. No stressing about business office use regardless of whether it be your clothes or foot wear.<br>This is an possibility no one must enable go of. One particular of the most engaging facets of performing at property is that it gives you manage above your daily life. No far more hurrying in the early morning to get everything in spot and have no time for yourself. Operate in the time most suitable for you.<br><br><br><br>Choose breaks from work when you truly feel like.<br>Working at dwelling pays genuinely well. So soon after preserving fees of travelling to function and outfits for perform (that you would not wear normally) you also get compensated truly nicely. Most of these opportunities arrive with actually great fork out. So although you rest at household and perform you also get paid out seriously nicely.<br><br>Employers supplying the operate from residence selection also reward from this together with their staff. They help save a ton of funds that they would have in any other case invested on vacation for their workforce, or even infrastructure for the office where by employees may will need computer systems, electric power, cafeteria, air-conditioning, tables chairs and so forth to get the job done.<br><br>Working at household requires this headache absent from the employer. All he has to worry about is whether or not the perform is getting accomplished. Businesses can now concentrate on company enlargement and even bigger opportunities available for the development of their corporation.<br>Work from dwelling is prospect that has permitted lots of workplace-goers to devote far more time with mates and household. No cribbing about not obtaining leaves for a family trip or a perform. Also, that evening tea you would normally overlook is possible when you're doing work at residence.<br><br>Just becoming there for your household is pretty critical.<br>Though doing the job at household pays effectively you can find a lot of level of competition involved and you have to be up for it. Levels of competition and good quality demands to be managed. But you will not have to get worried mainly because you will be at home calm and ready for the obstacle with a tranquil brain.<br><br>No colleagues hustling around you, disturbing you with other factors. So if you are up for the challenge Do the job from property is for you.<br><br>In the event you loved this information and you would like to receive more details with regards to [https://housingplan.co.kr:42796/xe/?document_srl=611803 www.bestonlinejobsindia.com] generously visit our website. |
| | |
| ==Importance==
| |
| AKS is the first primality-proving algorithm to be simultaneously ''general'', ''polynomial'', ''deterministic'', and ''unconditional''. Previous algorithms had been developed for centuries and achieved three of these properties at most, but not all four.
| |
| * The AKS algorithm can be used to verify the primality of any '''general''' number given. Many fast primality tests are known that work only for numbers with certain properties. For example, the [[Lucas–Lehmer primality test|Lucas–Lehmer test for Mersenne numbers]] works only for [[Mersenne number]]s, while [[Pépin's test]] can be applied to [[Fermat number]]s only.
| |
| * The maximum running time of the algorithm can be expressed as a '''[[Polynomial_time#Polynomial_time|polynomial]]''' over the number of digits in the target number. [[Elliptic curve primality proving|ECPP]] and [[Adleman–Pomerance–Rumely primality test|APR]] conclusively prove or disprove that a given number is prime, but are not known to have polynomial time bounds for all inputs.
| |
| * The algorithm is guaranteed to distinguish '''[[Deterministic algorithm|deterministically]]''' whether the target number is prime or composite. Randomized tests, such as [[Miller–Rabin primality test|Miller–Rabin]] and [[Baillie–PSW primality test|Baillie–PSW]], can test any given number for primality in polynomial time, but are known to produce only a probabilistic result.
| |
| * The correctness of AKS is '''not conditional''' on any subsidiary unproven [[hypothesis]]. In contrast, the [[Miller–Rabin primality test#Deterministic variants of the test|Miller test]] is fully deterministic and runs in polynomial time over all inputs, but its correctness depends on the truth of the yet-unproven [[generalized Riemann hypothesis]].
| |
| | |
| ==Concepts==
| |
| The AKS primality test is based upon the following theorem: An integer ''n'' (≥ 2) is prime if and only if the polynomial [[Congruence relation#Modular arithmetic|congruence relation]]
| |
| :<math>(x - a)^{n} \equiv (x^{n} - a) \pmod{n} \qquad (1)</math>
| |
| holds for all integers ''a'' [[coprime]] to ''n'' (or even just for some such integer ''a'', in particular for ''a'' = 1).<ref name="AKS"/> Note that ''x'' is a free variable. It is never substituted by a number; instead you have to expand <math>(x-a)^n</math> and compare the coefficients of the ''x'' powers.
| |
| | |
| This theorem is a generalization to polynomials of [[Fermat's little theorem]], and can easily be proven using the [[binomial theorem]] together with the following property of the [[binomial coefficient]]: | |
| :<math>{n \choose k} \equiv 0 \pmod{n}</math> for all <math>0<k<n</math> if and only if ''n'' is prime.
| |
| | |
| While the relation (1) constitutes a primality test in itself, verifying it takes [[exponential time]]. Therefore, to reduce the [[Computational complexity theory|computational complexity]], AKS makes use of the related congruence
| |
| :<math>(x - a)^{n} \equiv (x^{n} - a) \pmod{(n,x^{r}-1)} \qquad (2)</math>
| |
| which is the same as:
| |
| :<math>(x - a)^n - (x^n - a) = nf + (x^r - 1)g \qquad (3)</math>
| |
| for some polynomials ''f'' and ''g''. This congruence can be checked in polynomial time with respect to the number of digits in n, because it is provable that r need only be logarithmic with respect to n. Note that all primes satisfy this relation (choosing ''g'' = 0 in (3) gives (1), which holds for ''n'' prime). However, some composite numbers also satisfy the relation. The proof of correctness for AKS consists of showing that there exists a suitably small ''r'' and suitably small set of integers ''A'' such that, if the congruence holds for all such ''a'' in ''A'', then ''n'' must be prime.
| |
| | |
| ==History and running time==
| |
| In the first version of the above-cited paper, the authors proved the asymptotic time complexity of the algorithm to be [[Big O notation#Extensions to the Bachmann–Landau notations|Õ]]<math>(\log^{12}(n))</math>. In other words, the algorithm takes less time than the twelfth power of the number of digits in ''n'' times a polylogarithmic (in the number of digits) factor. However, the upper bound proved in the paper was rather loose; indeed, a widely held conjecture about the distribution of the [[Sophie Germain prime]]s would, if true, immediately cut the worst case down to Õ<math>(\log^6(n))</math>.
| |
| | |
| In the months following the discovery, new variants appeared (Lenstra 2002, Pomerance 2002, Berrizbeitia 2003, Cheng 2003, Bernstein 2003a/b, Lenstra and Pomerance 2003), which improved the speed of computation by orders of magnitude. Due to the existence of the many variants, Crandall and Papadopoulos refer to the "AKS-class" of algorithms in their scientific paper "On the implementation of AKS-class primality tests", published in March 2003.
| |
| | |
| In response to some of these variants, and to other feedback, the paper "PRIMES is in P" was updated with a new formulation of the AKS algorithm and of its proof of correctness. (This version was eventually published in ''[[Annals of Mathematics]]''.) While the basic idea remained the same, ''r'' was chosen in a new manner, and the proof of correctness was more coherently organized. While the previous proof had relied on many different methods, the new version relied almost exclusively on the behavior of cyclotomic polynomials over [[finite fields]]. The new version also allowed for an improved bound on the time complexity, which can now be shown by simple methods to be Õ<math>(\log^{10.5}(n))</math>. Using additional results from [[sieve theory]], this can be further reduced to Õ<math>(\log^{7.5}(n))</math>.
| |
| | |
| In 2005, [[Carl Pomerance]] and [[Hendrik Lenstra|H. W. Lenstra, Jr.]] demonstrated a variant of AKS that runs in Õ(log<sup>6</sup>(''n'')) operations, where ''n'' is the number to be tested – a marked improvement over the initial Õ(log<sup>12</sup>(''n'')) bound in the original algorithm.<ref name="lenstra_pomerance_2005">H. W. Lenstra jr. and Carl Pomerance, "[http://www.math.dartmouth.edu/~carlp/PDF/complexity12.pdf Primality testing with Gaussian periods]", preliminary version July 20, 2005.</ref> An updated version of the paper is also available.<ref name="lenstra_pomerance_2011">H. W. Lenstra jr. and Carl Pomerance, "[http://www.math.dartmouth.edu/~carlp/aks041411.pdf Primality testing with Gaussian periods]", version of April 12, 2011.</ref>
| |
| | |
| Agrawal, Kayal and Saxena suggest a variant of their algorithm which would run in Õ<math>(\log^{3}(n))</math> if a certain conjecture made by Bhattacharjee and Pandey in 2001 is true ([[Agrawal's conjecture]]); however, a heuristic argument by Hendrik Lenstra and Carl Pomerance suggests that it is probably false.<ref name="AKS"/>
| |
| | |
| ==Algorithm==
| |
| The algorithm is as follows:<ref name="AKS" />
| |
| | |
| : Input: integer ''n'' > 1.
| |
| # If ''n'' = ''a''<sup>''b''</sup> for integers ''a'' > 1 and ''b'' > 1, output ''composite''.
| |
| # Find the smallest ''r'' such that ''O''<sub>''r''</sub>(''n'') > (log ''n'')<sup>2</sup>.
| |
| # If 1 < [[greatest common divisor|gcd]](''a'',''n'') < ''n'' for some ''a'' ≤ ''r'', output ''composite''.
| |
| # If ''n'' ≤ ''r'', output ''prime''.
| |
| # For ''a'' = 1 to <math>\scriptstyle\lfloor \scriptstyle{\sqrt{\varphi(r)}\log(n)} \scriptstyle\rfloor</math> do
| |
| #: if (''X''+''a'')<sup>''n''</sup>≠ ''X''<sup>''n''</sup>+''a'' (mod ''X''<sup>''r''</sup> − 1,''n''), output ''composite'';
| |
| # Output ''prime''.
| |
| | |
| Here ''O''<sub>''r''</sub>(''n'') is the [[multiplicative order]] of ''n'' [[modular arithmetic|modulo]] ''r'', ''log'' is the [[binary logarithm]], and <math>\scriptstyle\varphi(r)</math> is [[Euler's totient function]] of ''r''.
| |
| | |
| If ''n'' is a prime number, the algorithm will always return ''prime'': since ''n'' is prime, steps 1 and 3 will never return ''composite''. Step 5 will also never return ''composite'', because (2) is true for all prime numbers ''n''. Therefore, the algorithm will return ''prime'' either in step 4 or in step 6.
| |
| | |
| Conversely, if ''n'' is composite, the algorithm will always return ''composite'': if the algorithm returns ''prime'', then this will occur in either step 4 or step 6. In the first case, since ''n'' ≤ ''r'', ''n'' has a factor ''a'' ≤ ''r'' such that 1 < gcd(''a'',''n'') < ''n'', which will return ''composite''. The remaining possibility is that the algorithm returns ''prime'' in step 6. The authors' article<ref name="AKS" /> proves that this will not happen because the multiple congruences tested in step 5 are sufficient to guarantee that the output is ''composite''.
| |
| | |
| ==References==
| |
| {{reflist}}
| |
| | |
| ==Further reading==
| |
| * {{cite book | last=Dietzfelbinger | first=Martin | title=Primality testing in polynomial time. From randomized algorithms to ``PRIMES is in P" | series=Lecture Notes in Computer Science | volume=3000 | location=Berlin | publisher=[[Springer-Verlag]] | year=2004 | isbn=3-540-40344-2 | zbl=1058.11070 }}
| |
| | |
| ==External links==
| |
| * {{MathWorld|urlname=AKSPrimalityTest|title=AKS Primality Test}}
| |
| * [http://www.dm.unito.it/~cerruti/ac/aks-crandall.pdf R. Crandall, Apple ACG, and J. Papadopoulos (March 18, 2003): On the implementation of AKS-class primality tests] (PDF)
| |
| * [http://www.ams.org/notices/200305/fea-bornemann.pdf Article by Borneman, containing photos and information about the three Indian scientists] (PDF)
| |
| * [http://www.ams.org/bull/2005-42-01/S0273-0979-04-01037-7/home.html Andrew Granville: It is easy to determine whether a given integer is prime]
| |
| * [http://www.scottaaronson.com/writings/prime.pdf The Prime Facts: From Euclid to AKS], by [[Scott Aaronson]] (PDF)
| |
| * [http://www.instantlogic.net/publications/PRIMES%20is%20in%20P%20little%20FAQ.htm The PRIMES is in P little FAQ] by Anton Stiglic
| |
| * [http://www.sigact.org/Prizes/Godel/2006.html 2006 Gödel Prize Citation]
| |
| * [http://www.ams.org/notices/200611/comm-fulkerson.pdf 2006 Fulkerson Prize Citation]
| |
| * [http://fatphil.org/maths/AKS The AKS "PRIMES in P" Algorithm Resource]
| |
| * {{cite web|last=Grime|first=Dr. James|title=Fool-Proof Test for Primes - Numberphile|url=http://www.youtube.com/watch?v=HvMSRWTE2mI&feature=youtu.be|publisher=[[Brady Haran]]|format=video}}
| |
| | |
| {{number theoretic algorithms}}
| |
| | |
| [[Category:Primality tests]]
| |
| [[Category:Finite fields]]
| |
Get the job done from residence is a well known notion we occur throughout these times.
It is a additional flexible solution to earning an profits than other common solutions. Performing from dwelling usually means the fulfillment of getting employed with a blend of factors, the most distinguished of which is Benefit. What can make it so interesting is the advantage of location and time.
The rising rate of visitors jams, value of fuel, limited-staffing in company places of work and the straightforward availability of the online and pcs are a few reasons that have built it a really promising indicates to generate cash flow. Offered down below are a number of extra good reasons that I imagine, make functioning from dwelling an captivating alternative.
Work from house saves the time put in touring to place of work and back again. This time can be utilised to raise efficiency. You can set this time to better use and even give additional time at home. Functioning from residence implies you never have to be concerned about dressing up for operate.
Just get out of bed and start your working day. No stressing about business office use regardless of whether it be your clothes or foot wear.
This is an possibility no one must enable go of. One particular of the most engaging facets of performing at property is that it gives you manage above your daily life. No far more hurrying in the early morning to get everything in spot and have no time for yourself. Operate in the time most suitable for you.
Choose breaks from work when you truly feel like.
Working at dwelling pays genuinely well. So soon after preserving fees of travelling to function and outfits for perform (that you would not wear normally) you also get compensated truly nicely. Most of these opportunities arrive with actually great fork out. So although you rest at household and perform you also get paid out seriously nicely.
Employers supplying the operate from residence selection also reward from this together with their staff. They help save a ton of funds that they would have in any other case invested on vacation for their workforce, or even infrastructure for the office where by employees may will need computer systems, electric power, cafeteria, air-conditioning, tables chairs and so forth to get the job done.
Working at household requires this headache absent from the employer. All he has to worry about is whether or not the perform is getting accomplished. Businesses can now concentrate on company enlargement and even bigger opportunities available for the development of their corporation.
Work from dwelling is prospect that has permitted lots of workplace-goers to devote far more time with mates and household. No cribbing about not obtaining leaves for a family trip or a perform. Also, that evening tea you would normally overlook is possible when you're doing work at residence.
Just becoming there for your household is pretty critical.
Though doing the job at household pays effectively you can find a lot of level of competition involved and you have to be up for it. Levels of competition and good quality demands to be managed. But you will not have to get worried mainly because you will be at home calm and ready for the obstacle with a tranquil brain.
No colleagues hustling around you, disturbing you with other factors. So if you are up for the challenge Do the job from property is for you.
In the event you loved this information and you would like to receive more details with regards to www.bestonlinejobsindia.com generously visit our website.