![]() |
![]() |
#34 | |
"Forget I exist"
Jul 2009
Dartmouth NS
203428 Posts |
![]() Quote:
Last fiddled with by science_man_88 on 2017-12-30 at 13:35 |
|
![]() |
![]() |
![]() |
#35 | |
Dec 2017
5010 Posts |
![]() Quote:
yet as our mathematical knowledge increases it would be truelly wonderful to know somethig even more simple and beautiful than that ... besides that, the aks test (ignoring their very nice contribution through appropriate polynomial division for a moment) is nothing than the trivial fact that p is prime iff p divides the all binomial coefficients (p over q) with 1 < q < p ... naively spoken it's a sieve in disguise. (the terms simple and beautiful might not be defined properly, yet i believe we will know and recognize it as soon as we see it ?) Last fiddled with by guptadeva on 2017-12-30 at 14:01 |
|
![]() |
![]() |
![]() |
#36 | |
Aug 2006
5,987 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#37 | |
Dec 2017
2·52 Posts |
![]() Quote:
step 3 of the aks-test (see attachment above) is in fact a classical sieve. the reason for aks being vastly faster than a full sieve is the existence of the parameter r in step 2, so that the sieve only has to run until min(r,n-1) ... yet in the (relatively rare) case, that r>=n-1 a full sieve is executed. also the step 5 is relatively slow ... the main contribution of agrawal, kayal and saxena was in fact the introduction of an appropriate polynomial division (with x^r -1) based on group-theoretical arguments and also to proove that their algorithm is complete. Last fiddled with by guptadeva on 2017-12-31 at 01:49 |
|
![]() |
![]() |
![]() |
#38 |
"Dana Jacobsen"
Feb 2011
Bangkok, TH
11100011012 Posts |
![]()
Certainly we would want to read more about the AKS test rather than rely on that video. "the aks test [...] is nothing than the trivial fact that [...]" is what everyone thinks after watching that video, which is a disservice to the AKS paper, which the video rolls up in "well that's not quite the same" at 2:35-2:50.
It's like a video about the Lucas-Lehmer test spending almost all the time explaining Wilson's Theorem, then at the end saying "and then using some fiddly bits from Lucas, Lehmer did some twiddling to make it a bit faster, but we won't show that." "yet in the (relatively rare) case, that r>=n-1 a full sieve is executed." Once above tiny size numbers, r is *much* smaller than sqrt(n). The time taken in steps 1-4 is very small relative to step 5. "also the step 5 is relatively slow ... " Yes it is, but it's faster than trial division once past small inputs and clearly shows polynomial growth in empirical implementations. Much different than trial division. |
![]() |
![]() |
![]() |
#39 | |
"Dana Jacobsen"
Feb 2011
Bangkok, TH
32·101 Posts |
![]() Quote:
"simple" is relative. I also assume you want "fast" added to your list of items. It's also relative, but without it there are quite a few useless choices. You can also get some not useless but not really fast tests like the BLS75 methods (partial factoring of n-1 and/or n+1). They're simple, unconditional, and deterministic. They're also a lot faster than trial division. I do agree that, given the state of most programs / programmers, it'd be nice to have something else. Multiple Miller-Rabin tests is the height of most non-math programs. At least adding a strong Lucas test would be nice. APR-CL and ECPP do have open source libraries but certainly not many users. |
|
![]() |
![]() |
![]() |
#40 | |
Dec 2017
California
23 Posts |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#41 | |
Dec 2017
1100102 Posts |
![]() Quote:
aks.pdf to make such simplifying statements - yet sometimes simplification may improve understanding. Last fiddled with by guptadeva on 2017-12-31 at 03:24 |
|
![]() |
![]() |
![]() |
#42 | |
Dec 2017
2·52 Posts |
![]() Quote:
![]() yet, honestly i'm not interested in "fast" algorithms at the moment - so which algorithms do you have in mind when when mentioning "quite a few useless choices" ? maybe they are "beautiful" ? Last fiddled with by guptadeva on 2017-12-31 at 04:05 |
|
![]() |
![]() |
![]() |
#43 |
"Forget I exist"
Jul 2009
Dartmouth NS
2·3·23·61 Posts |
![]() |
![]() |
![]() |
![]() |
#44 | |
"Dana Jacobsen"
Feb 2011
Bangkok, TH
38D16 Posts |
![]() Quote:
There are a lot of people posting on the internet who see that video then believe that lemma is the AKS test entirely. Sometimes with some confusion over what all the fuss was about or how it could be efficient, but sometimes just recommending people implement it to check 10 digit inputs because it is Moar Faster. Wilson's theorem is quite elegant and simple, but not fast. Similarly the statement about binomials equaling zero, which is elegant though slower than simple trial division. Trial division itself, whether naive, wheel optimized, or using primes generated with a sieve. Miller's test using either n/4 or various proven reductions is pretty straightforward (getting all the way down to 2*log^2(n) requires the GRH). Underwood collects lots of oddball formulas in his 1983 paper Formulas for Primes, most of which devolve into either Wilson's Theorem or a sieve. In practice one usually uses APR-CL and/or ECPP. Typically with BPSW used as a pre-test. Of course if the input is a special form with an efficient test we would use that. |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Claimed proof of the ABC conjecture (Zha, 2009) | R.D. Silverman | Math | 6 | 2019-04-22 00:03 |
Collatz Conjecture Proof | Steve One | Miscellaneous Math | 21 | 2018-03-08 08:18 |
The Beal Conjecture Proof | Arxenar | Miscellaneous Math | 1 | 2013-09-07 09:59 |
A proof for the Twin Prime Conjecture | Carl Fischbach | Miscellaneous Math | 7 | 2009-06-24 05:52 |
Proof of Goldbach Conjecture | vector | Miscellaneous Math | 5 | 2007-12-01 14:43 |