mersenneforum.org  

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

Reply
 
Thread Tools
Old 2013-04-17, 19:41   #23
Aramis Wyler
 
Aramis Wyler's Avatar
 
"Bill Staffen"
Jan 2013
Pittsburgh, PA, USA

23·53 Posts
Default

Wow, you got that symbol in there, cool. So how is '≡' different than '=' or are they not? Ah, I see hints in your answer there, like maybe the part trailing the y applies to both sides of the ≡ even though it's only written once.

Last fiddled with by Aramis Wyler on 2013-04-17 at 19:42
Aramis Wyler is offline   Reply With Quote
Old 2013-04-17, 21:31   #24
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

10110111111102 Posts
Default

≡ is used over = when used in the context of congruence or equivalence relations. Strictly speaking you could say the values are not necessarily equal but are congruent whenever ≡ is used. It is silly maths notation that non-mathsy people can probably treat as equals.
henryzz is online now   Reply With Quote
Old 2013-04-17, 22:41   #25
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22·5·373 Posts
Default

Quote:
Originally Posted by xilman View Post
That symbol means "is equivalent to" or "is identical to" in general. Precisely which form of equivalence depends on context.

In the context likely to be appropriate here, to say xy (mod N) means that x has the same remainder r in the range 0 ≤ r < N when divided by N as does y when divided by N.
It is HIGHLY context dependent. If you read a paper in a journal it will
NOT mean that x and y have the same remainder. Instead it will simply
mean that (x-y) is divisible by N and NOTHING MORE.
R.D. Silverman is offline   Reply With Quote
Old 2013-04-17, 22:45   #26
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by Aramis Wyler View Post
huh! I've always seen the % or simply 'mod' as modulo. I'll go back and read that wiki entry again and see if that makes more sense.

EDIT: I'm not sure that follows, as the equation does use a mod.

http://www.mersennewiki.org/cgi-bin/...i?a^{p-1}\eq 1

Let P be a prime which does not divide the integer a, then a^[I]P[/I]-1\eq 1 (mod P).
Here, it means that (a^(p-1) - 1) is divisible by p. Or, in other words
a^(p-1) - 1 is an (unknown) multiple of p.
R.D. Silverman is offline   Reply With Quote
Old 2013-04-18, 06:29   #27
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
It is HIGHLY context dependent. If you read a paper in a journal it will
NOT mean that x and y have the same remainder. Instead it will simply
mean that (x-y) is divisible by N and NOTHING MORE.
True. I was attempting to deduce the context from the style and location of the post.
xilman is offline   Reply With Quote
Old 2013-04-19, 13:54   #28
Aramis Wyler
 
Aramis Wyler's Avatar
 
"Bill Staffen"
Jan 2013
Pittsburgh, PA, USA

23×53 Posts
Default

EDIT: Deleted. This comment was just a lot of me talking too much.

Last fiddled with by Aramis Wyler on 2013-04-19 at 14:20 Reason: Not important!
Aramis Wyler is offline   Reply With Quote
Old 2013-04-19, 14:05   #29
Aramis Wyler
 
Aramis Wyler's Avatar
 
"Bill Staffen"
Jan 2013
Pittsburgh, PA, USA

1A816 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
A followup: Please see:

http://thebestpageintheuniverse.net/c.cgi?u=math

Note that I did not write it.

Wow, maybe I have taken your comments in the wrong light. I apologise for wasting your time.
Aramis Wyler is offline   Reply With Quote
Old 2013-04-19, 14:26   #30
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

11101001001002 Posts
Default

Quote:
Originally Posted by Aramis Wyler View Post
Wow, maybe I have taken your comments in the wrong light. I apologise for wasting your time.
You were not wasting my time. Only I can waste my time.
R.D. Silverman is offline   Reply With Quote
Old 2013-04-19, 15:39   #31
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
Stage 1 can not be run in parallel.
Not so..

You may not be able to parallelize the exponentiation chain but you can certainly parallelize the arithmetic primitives of addition, subtraction and multiplication within any one step in the chain. See the gpu implementation of ECM by Cyril Bouvier et al. for one way of doing it; that of Lenstra et al. for a PS2 for another; read up on Montgomery reduction within the RNS for yet another.

Paul
xilman is offline   Reply With Quote
Old 2013-04-19, 16:10   #32
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by xilman View Post
Not so..

You may not be able to parallelize the exponentiation chain but you can certainly parallelize the arithmetic primitives of addition, subtraction and multiplication within any one step in the chain. See the gpu implementation of ECM by Cyril Bouvier et al. for one way of doing it; that of Lenstra et al. for a PS2 for another; read up on Montgomery reduction within the RNS for yet another.

Paul
I have implemented parallel integer multiplication via RNS. See my paper:
Parallel Polynomial Arithmetic Over Finite Rings. (J. Parallel & Distr. Comp.) I am well aware that it can be done.

Schonhage-Strassen can also be done in parallel. But communication
costs (especially latency) among multiple GPU's makes the speed-up
that is gained succinctly sub-linear.

The best way to run P-1 in parallel is to give separate instances to each GPU.
R.D. Silverman is offline   Reply With Quote
Old 2013-04-19, 17:00   #33
xilman
Bamboozled!
 
xilman's Avatar
 
"𒉺𒌌𒇷𒆷𒀭"
May 2003
Down not across

101010000111002 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
I have implemented parallel integer multiplication via RNS. See my paper: Parallel Polynomial Arithmetic Over Finite Rings. (J. Parallel & Distr. Comp.) I am well aware that it can be done.

Schonhage-Strassen can also be done in parallel. But communication
costs (especially latency) among multiple GPU's makes the speed-up
that is gained succinctly sub-linear.

The best way to run P-1 in parallel is to give separate instances to each GPU.
I was aware of your paper so the "you" in my posting was very much the general reader who most likely wouldn't have read the paper in question and would be misled by your categorical "Stage 1 can not be run in parallel".

The term "best" implies optimization of a value function. While the speed-up may be sub-linear, a parallel arithmetic implementation may well be a good idea if it reduces latency to an acceptable level. Lenstra's group found this when they estimated that a GPU implementation of their PS2 ECM code would have at least an order of magnitude more throughput at the cost of several hundred times the latency. Being able to run tens of thousands of curves in parallel is attractive until you realise that it will take a year before any of them complete.
xilman is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
need some math help. swl551 Math 2 2014-02-20 16:33
Math ET_ Operazione Doppi Mersennes 4 2012-09-20 19:33
Math JohnFullspeed Forum Feedback 1 2011-07-11 16:42
math help pls! DSC Miscellaneous Math 2 2005-09-11 04:53
help with math DSC Homework Help 13 2005-08-31 07:16

All times are UTC. The time now is 06:38.


Mon Aug 2 06:38:15 UTC 2021 up 10 days, 1:07, 0 users, load averages: 1.47, 1.35, 1.26

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.