Click here to Skip to main content
15,902,876 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn26-Nov-08 13:12
sitebuilderLuc Pattyn26-Nov-08 13:12 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult26-Nov-08 17:56
mvePIEBALDconsult26-Nov-08 17:56 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn26-Nov-08 18:48
sitebuilderLuc Pattyn26-Nov-08 18:48 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn26-Nov-08 15:14
sitebuilderLuc Pattyn26-Nov-08 15:14 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult26-Nov-08 18:49
mvePIEBALDconsult26-Nov-08 18:49 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult14-Jan-09 17:50
mvePIEBALDconsult14-Jan-09 17:50 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn15-Jan-09 1:11
sitebuilderLuc Pattyn15-Jan-09 1:11 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult15-Jan-09 6:12
mvePIEBALDconsult15-Jan-09 6:12 
Luc Pattyn wrote:
shaving off some 30% of total elapsed time


I'd take that. With threading, mine was slower, I except because of all the thread creates.
I expect that I could create one or two threads that perform work as I provide it and otherwise sleep.


Luc Pattyn wrote:
cache-bandwidth limited


Which I'm probably having too because I can't perform all the work on one spoke, then go to the next; I have to do a small amount of work on one, go to the next, and continue cycling through all the spokes until they're all done.

...

OMG | :OMG: I just had a thought... I could copy a vertical slice of the table into a separate array and work on it with many fewer (1/64?) iterations through my List<Spoke>! I can also make that part of the process quicker; I just realized how badly I implemented it. Sigh | :sigh:
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn15-Jan-09 6:28
sitebuilderLuc Pattyn15-Jan-09 6:28 
AnswerRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Member 419459328-Nov-08 9:03
Member 419459328-Nov-08 9:03 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult28-Nov-08 10:46
mvePIEBALDconsult28-Nov-08 10:46 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn28-Nov-08 11:01
sitebuilderLuc Pattyn28-Nov-08 11:01 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes [modified] Pin
PIEBALDconsult29-Nov-08 4:13
mvePIEBALDconsult29-Nov-08 4:13 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Member 41945934-Jan-09 16:56
Member 41945934-Jan-09 16:56 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Member 41945935-Jan-09 11:06
Member 41945935-Jan-09 11:06 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn28-Nov-08 11:33
sitebuilderLuc Pattyn28-Nov-08 11:33 
AnswerRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult2-Dec-08 3:45
mvePIEBALDconsult2-Dec-08 3:45 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn2-Dec-08 22:14
sitebuilderLuc Pattyn2-Dec-08 22:14 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
73Zeppelin2-Dec-08 22:28
73Zeppelin2-Dec-08 22:28 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn2-Dec-08 23:15
sitebuilderLuc Pattyn2-Dec-08 23:15 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
73Zeppelin3-Dec-08 0:14
73Zeppelin3-Dec-08 0:14 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult3-Dec-08 4:11
mvePIEBALDconsult3-Dec-08 4:11 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn3-Dec-08 5:45
sitebuilderLuc Pattyn3-Dec-08 5:45 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult3-Dec-08 16:16
mvePIEBALDconsult3-Dec-08 16:16 
GeneralA la recherche des nombres premiers Pin
Luc Pattyn3-Dec-08 16:37
sitebuilderLuc Pattyn3-Dec-08 16:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.