mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2011-04-25, 22:48   #12
Sairam
 
Apr 2011

22 Posts
Default

Thanks to everybody who replied. jasonp and cheesehead, thank you for your convincing explanations.
cheesehead...i am not ignoring your suggestions. I just found a copy of the book you suggested in the library.
Sairam is offline   Reply With Quote
Old 2011-04-25, 23:43   #13
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by Batalov View Post
1. AKS test is not a practical test (esp. for 10-digit numbers), is it? /Wiki/
2. By simply changing the base of the log you 'make it faster', but how would you know if it actually remains valid?
It does NOT remain valid.
R.D. Silverman is offline   Reply With Quote
Old 2011-04-25, 23:51   #14
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
It does NOT remain valid.
could you ever compensate for it using the conversion posted above.
science_man_88 is offline   Reply With Quote
Old 2011-04-26, 00:03   #15
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

746010 Posts
Default

Quote:
Originally Posted by Sairam View Post
When I change the base from 2 to e in the above algorithm then the computational time taken reduces. I understand the asymptotic notation based on jasonp's reply (thank you), but I was also wondering if we are allowed to change the base like that for computational purposes.
You are NOT allowed to change the base.

Quote:
For example, the average time taken to test primality for 10 digit numbers increases from 8.9 minutes (natural log) to 1.2 hours (base 2). Terribly sorry if I sound stupid but I don't have much idea about algorithms and their complexities and so would really appreciate a good explanation from someone.
"I don't have much idea about algorithms"

This is easily corrected. Go study. I can recommend some good books.

Allow me to ask:

Why are you bothering with an algorithm that you don't understand?
Go read the original paper.

I can explain why one can't change the base, but you won't understand it.
By your own admission, you lack the math and I can't give a semester
course in group theory here.

You need to take a course in both group theory and number theory (or
self-study equivalent) to understand what is going on. An additional
course in algorithms would not hurt.

Although the following does not explain WHY, the following sentence
explains why changing the logarithm base doesn't work:

You need to prove the congruence is true for SUFFICIENTLY MANY
DIFFERENT values of a. (and they do not have to be sequential;
they are chosen that way for convenience)

Before you ask why, allow me to ask if you know what the multiplicative
group of units of Z/NZ is??
R.D. Silverman is offline   Reply With Quote
Old 2011-04-26, 03:14   #16
Sairam
 
Apr 2011

416 Posts
Default

Honestly, I don't know the answer to the question you posted.

All I know from the paper AKS published is r and a must be chosen carefully since otherwise even some composite numbers satisfy the polynomial congruence relation for some values of a and r and so could be identified as prime. And yes, I thought the values of a have to be sequential for the polynomial test

So is this a forum only for people who know everything? From my perspective, it was a genuine question and which was why I posted it in this forum looking for an answer. I apologize if my ignorance offended some brilliant mathematicians out there.

Last fiddled with by Sairam on 2011-04-26 at 03:14
Sairam is offline   Reply With Quote
Old 2011-04-26, 04:35   #17
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by Sairam View Post
I apologize if my ignorance offended some brilliant mathematicians out there.
No, just one. Silverman is like this to everyone, consider it your initiation.
CRGreathouse is offline   Reply With Quote
Old 2011-04-26, 11:34   #18
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22·5·373 Posts
Default

Quote:
Originally Posted by Sairam View Post
Honestly, I don't know the answer to the question you posted.

All I know from the paper AKS published is r and a must be chosen carefully since otherwise even some composite numbers satisfy the polynomial congruence relation for some values of a and r and so could be identified as prime. And yes, I thought the values of a have to be sequential for the polynomial test

So is this a forum only for people who know everything? From my perspective, it was a genuine question and which was why I posted it in this forum looking for an answer. I apologize if my ignorance offended some brilliant mathematicians out there.
Why is it that when I suggest that someone needs to learn some basic
undergrad level math before he/she can understand something, they
respond with "only for people who know everything"?

One does not need to know everything. But one does need to
know the basics. Why do you jump to the extreme??


I was not offended. Where did you get that idea? And my final question
from the earlier post was intended to indicate the kind of mathematics
one needs to know to understand why the number of iterations
can not be changed. If you had answered "yes" to that question, then
we could have had a discussion about how/why one needs to bound the
size of the unit group.

If one is following an algorithm as one follows a cookbook recipe, one
should not be asking the equivalent of "why can't I change the requirement
for 2 cups of flour to just 1 cup"? The answer should be obvious.
If one changes the recipe, the result will not be good.

If the people who invented the algorithm could have made it faster by
reducing the number of iterations don't you think that they would have
done so? If the answer to this is "I was not aware that changing the
logarithm base changed the number of iterations", then a further reply would
be that you are not even ready to take the basic undergrad level courses
one needs because you have not yet mastered high-school level math.

I'm not trying to be mean. I am telling you the reality. This subject has
prerequisites.
R.D. Silverman is offline   Reply With Quote
Old 2011-04-26, 11:36   #19
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
No, just one. Silverman is like this to everyone, consider it your initiation.
"like this"??? Like what? I told someone that they needed to learn
some basic undergrad math before trying to understand a (moderately)
advanced subject. I even suggested which courses they should take.

What was wrong with what I said?
R.D. Silverman is offline   Reply With Quote
Old 2011-04-26, 14:11   #20
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

22·5·72·11 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
"like this"??? Like what? I told someone that they needed to learn
some basic undergrad math before trying to understand a (moderately)
advanced subject. I even suggested which courses they should take.

What was wrong with what I said?
I saw nothing wrong with what you said.

However, as far as you advising a questioner to learn some pre-requisites and giving suggestions as to where they may be found, you are like that to (most) everyone.

IOW, calm down becauwe no-one is accusing you of anything untoward.

Paul
xilman is online now   Reply With Quote
Old 2011-04-28, 04:27   #21
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
What was wrong with what I said?
I didn't say anything was wrong, I just advised Sairam not to take your comments personally. (Most people would otherwise misinterpret what you said.)
CRGreathouse is offline   Reply With Quote
Old 2011-04-30, 09:28   #22
imwithid
 
imwithid's Avatar
 
Apr 2009
Venice, Chased by Jaws

3·29 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
Why are you bothering with an algorithm that you don't understand?
Perhaps this gets to the root of it. For the sake of argument, it may frustrate you that one who knows nothing. little or insufficiently much about a given subject matter may wish to take it upon themselves to attempt to solve, modify or simply experiment with a given problem. That is their privilege and for the sake of civil discussion there are implicit rules when rightly discounting or critiquing one's ideas.

That one concedes lacking the requisite knowledge, yet is condescended upon by another by assuming one's level of ignorance or skill despite your expectations of this forum is what may lead some to think that you are being "mean" (tantamount to tripping one who is lame, that is, unless one is intentionally being a pest, whereby a general consensus may be informally met). One need not have to explain this to one who knows more/better. This is not an invitation to any flame war. I only mention this as I suspect that it may be more a general sentiment.

Last fiddled with by imwithid on 2011-04-30 at 10:24 Reason: Needed flame retardant
imwithid is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with discrete logarithm pinnn Information & Answers 43 2021-03-18 15:40
multiplication and logarithm bhelmes Math 4 2016-10-06 13:33
Discrete logarithm software Unregistered Information & Answers 39 2012-04-27 20:08
calculate logarithm base 2 of number very close 1 thehealer Other Mathematical Topics 9 2011-04-20 14:02
Base-6 speed for prime testing vs. base-2 jasong Conjectures 'R Us 36 2010-08-03 06:25

All times are UTC. The time now is 16:53.


Mon Aug 2 16:53:18 UTC 2021 up 10 days, 11:22, 0 users, load averages: 2.44, 2.20, 2.14

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.