mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2009-01-02, 20:49   #89
philmoore
 
philmoore's Avatar
 
"Phil"
Sep 2002
Tracktown, U.S.A.

3×373 Posts
Default

Quote:
Originally Posted by flouran View Post
Isn't the Miller-Rabin primality test faster than L-L? L-L has a run-time bit-complexity of O(n^2 \log n) for n bits. Miller-Rabin, on the other hand, according to http://en.wikipedia.org/wiki/Miller-...primality_test, has a bit-complexity (or arithmetic complexity? correct me if I'm wrong) "using modular exponentiation by repeated squaring, the running time of this algorithm is O(k × log3 n), where k is the number of different values of a we test; thus this is an efficient, polynomial-time algorithm. FFT-based multiplication can push the running time down to O(k × log2 n log log n log log log n) = Õ(k × log2 n)". Isn't Miller-Rabin way faster, and in fact, almost as fast as Shor's algorithm which has a run-time bit-complexity of O (\log^3 n)?
For the L-L complexity cited at the beginning of the post, n is the exponent of the Mersenne number. For the Miller-Rabin complexity cited from Wikipedia, n is the number itself. Thus both tests have essentially the same complexity, except that the Miller-Rabin test is done k times as opposed to once. On the other hand, if one assumes the Generalized Riemann Hypothesis, making the Miller-Rabin test determinate requires 2(log n)^2 bases, so it is essentially of order degree 4 + epsilon in the number of digits; L-L is degree 2 + epsilon.
philmoore is offline   Reply With Quote
Old 2009-01-02, 20:56   #90
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

101101011111112 Posts
Default

Quote:
Originally Posted by ewmayer View Post
"I've run out of pseudointellectual musings on primality testing..."
"...so let me try some pseudointellectual musings on the internet-as-linear-algebra-problem:"

Quote:
Originally Posted by flouran View Post
Besides, Google is the epitome of cross-referencing (it is a matrix of eigenvalue 2.7 billion if not more). LOL. But I'll check it out. thanks.
LOL, indeed - you wouldn't perchance be contemplating a liberal-arts major, would you, "my ill-conditioned friend"?

[Fluoran rushes off to check the Wikipedia page on "eigenvalue" and prepares his huffy "I was only joking ... it was, like, a metaphor or something, not a homonym as you seem to think, ewmayer" riposte.]
ewmayer is offline   Reply With Quote
Old 2009-01-02, 21:09   #91
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

7×292 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
Then go read a BOOK (not Wikipaedia which is a very innacurate and
unreliable source)

Riesel's book is excellent. So is Crandall & Pomerance.

Or else, ask me.....
i something on wikipedia is incorrect then correct it
also would you count mersennewiki as a bad source
http://www.mersennewiki.org/index.ph...primality_test

Last fiddled with by henryzz on 2009-01-02 at 21:11
henryzz is online now   Reply With Quote
Old 2009-01-02, 22:50   #92
flouran
 
flouran's Avatar
 
Dec 2008

11010000012 Posts
Talking

Quote:
Originally Posted by R.D. Silverman View Post
Gibberish.
Read Paul Garret's "Cryptographic Primitives", and you'll see that I am right in saying, "Monte-Carlo algorithm can either be yes-biased or no-biased, and thus 50% of its answers are certain." In fact, I'll be more exact, read pg. 8 Section 2.2 entitled, "Probabilistic Algorithms".
flouran is offline   Reply With Quote
Old 2009-01-02, 23:03   #93
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

19·613 Posts
Default

Now take a look at this 'ere parrot - lovely plumage. Although I prefer the Norwegian Blue meself, strictly personal-wise speakin'...
ewmayer is offline   Reply With Quote
Old 2009-01-03, 06:47   #94
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

1E0C16 Posts
Default

Quote:
Originally Posted by flouran View Post
It's a waste of time, and with all due respect, shut up.
If you'd actually googled "Norwegian Blue parrot:", you'd have found that one of the first links was to your beloved Wikipedia: http://en.wikipedia.org/wiki/Dead_Parrot. If you think Wikipedia is so good as a reference, why didn't you at least try a Wikipedia search (at left margin on http://en.wikipedia.org/wiki/Main_Page), which comes up with the Dead_Parrot article as its first result?

Wikipedia is NOT a reliable reference source; anyone can edit it. Despite the measures taken to make it easy to revert erroneous edits, it's just never as reliable as a professional source can be. Indeed, Wikipedia's own article on "Reliability of Wikipedia" (http://en.wikipedia.org/wiki/Reliability_of_Wikipedia) is currently headed by a warning that that very article needs improvement.

I usually cite Wikipedia only for convenience, and only when I think the content I reference there is accurate according to my _independent_ knowlege. I don't use or cite it as a reliable reference to support an argument (other than an argument about Wikipedia) -- for those purposes, I find more-professional references, as should you.

Last fiddled with by cheesehead on 2009-01-03 at 07:09
cheesehead is offline   Reply With Quote
Old 2009-01-03, 09:12   #95
Orgasmic Troll
Cranksta Rap Ayatollah
 
Orgasmic Troll's Avatar
 
Jul 2003

641 Posts
Default

Quote:
Originally Posted by flouran View Post
Furthermore, it's hilarious that you think I'm a guy; I guess male chauvinism hasn't left the mathematics community yet.
I assumed you're a guy because I've never known a woman to be such an argumentative ass without any substantive knowledge behind it.

You must be loads of fun at all the parties you don't get invited to.
Orgasmic Troll is offline   Reply With Quote
Old 2009-01-03, 13:15   #96
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

2×3×13×83 Posts
Default

Quote:
Originally Posted by xilman View Post
You should get out more ...

And come to think of it, are there any female
members of Mersenneforum, active or otherwise?

There should be a Sophie Germaine out there somewhere.

David (male).

Last fiddled with by davieddy on 2009-01-03 at 13:30
davieddy is offline   Reply With Quote
Old 2009-01-03, 17:53   #97
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

647410 Posts
Default

Quote:
Originally Posted by flouran View Post
LOL, Germaine primes and AKS.
I was primeraly thinking of Gauss's famous response on discovering
that his correspondent (with a male pseudonym) was female.

Last fiddled with by davieddy on 2009-01-03 at 18:00
davieddy is offline   Reply With Quote
Old 2009-01-04, 18:21   #98
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by flouran View Post
Also, to determine whether or not the bit-complexity of one algorithm requires more or less operations than the bit-complexity of another algorithm, can I just plug in large number into the bit-complexity formula of each and see which outputs the largest number (meaning it requires the most operations)?
No, because you don't know what the constant terms are. Further, you don't know what the underlying complexity is if you have only an O(---) runtime. An O(n^3) algorithm may in fact take quadratic time, but that fact remains unproved.

Now if you have an algorithm that takes Theta(n^5) and another that takes Theta(n^4) you know that there is some N such that for all n > N, the second algorithm is faster (though the first may be faster for all practical cases, if N is large enough). If you have two algorithms that take time O(n^5) and O(n^4) you can't actually say anything about their run times, not even for large enough n.
CRGreathouse is offline   Reply With Quote
Old 2009-01-04, 20:00   #99
flouran
 
flouran's Avatar
 
Dec 2008

72·17 Posts
Talking

I have posted this on every thread that I have started (there are only 2):
As a New Years resolution, I wanted to apologize for my past behavior on this forum. I have been irrational, childish, and rude in my postings, and after reading some of my posts I have decided that this sort of behavior is absolutely unacceptable and should not be tolerated. I have decided to put an end to this behavior before it can further progress, and I sincerely apologize to anyone (or everyone for that matter) whom I have offended, frustrated, and/or angered throughout my membership here. I promise that it will not happen again, and although many members here can make me angry at times (and I can make them angry too), my rude responses to them are not a means to an end. I hope that in this New Year, that we will treat each other better (and hopefully the economy will heal as well).

Have a blessed New Year,
flouran is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fastest software for Mersenne primality test? JonathanM Information & Answers 25 2020-06-16 02:47
non-Mersenne primality tests Visar Information & Answers 33 2015-12-01 18:27
The fastest primality test for Fermat numbers. Arkadiusz Math 6 2011-04-05 19:39
Two Primality tests for Fermat numbers T.Rex Math 2 2004-09-11 07:26
fastest general number primality-proving algorithm? ixfd64 Math 3 2003-12-17 17:06

All times are UTC. The time now is 23:29.


Fri Aug 6 23:29:26 UTC 2021 up 14 days, 17:58, 1 user, load averages: 3.84, 3.85, 3.95

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.