Status
Not open for further replies.
I seem to recall that the standard PI algorithm is iterative. That would mean that a distributed version is not of much help.

See you would need the result of the previous calculation before you can start on the next one. I recon you could write a version for a cluster, but a truly distributed version would be difficult.

That's what I remember from my numerical analysis class at any rate. There may be non iterative algorithms as well.
 

Tonyguy02

Ars Tribunus Militum
1,578
This comes up every now and then in the DC forum. As best as I can remember, the problem arises from the fact that

1.) all the algorithms used to calculate pi tend to be recursive, so it's hard to break it into work units
2.) the results would be uncompressable numerical data, and for a few hours of cruching, you'd be looking at 50megs or so of data that has to be returned; obviously not going to work well on a large scale
3.) pi has been calculated to a rediculous amount of places already, somewhere in the area of +200 BILLION, even though theoretical math only shows a need for ~40 if we wanted to draw a circle around the universe and not miss by more than a proton or so.
 

Catfish

Ars Tribunus Angusticlavius
9,954
How do you calculate it, anyways?

The best I can thing of is the equation of a unit radius circle - x^2 + y^2 = 1
If you then look at the quarter circle above & to the right of the origin, you could slice it into vertical strips, approximated as rectangles.
By summing the area of the rectangles, you can calculate the approximated area of the total circle, which will be equal to pi (since radius = 1).
By using smaller strips, your pi approximation will be more accurate.

Is that how it works?
 

bash666

Ars Legatus Legionis
24,417
I never said it wasn't, did I? The RC5 distributed computing project is useless as well. The only reason to do it is the potential money.

But for the money you should buy lottery tickets(RC5 is not free, at least if you pay for elec and woudl be running HLT instead). The best thing about RC5 was the Proof of Concept which has finally led way to productive projects liek foldign at home and to a lesser degree seti at home.

-Kevin
 
3.) pi has been calculated to a rediculous amount of places already, somewhere in the area of +200 BILLION, even though theoretical math only shows a need for ~40 if we wanted to draw a circle around the universe and not miss by more than a proton or so.

Yes but at 200 billion and one we get to see Slartibartfast's signature if we block it into tetrahedrons and turn it sideways :)

Ok ok.. so it was a stupid useless idea. But since we'll all be decomposing in 100 years or so is anything but research on extending our expiration date really worth our time. <Sigh> guess I'll go back to surfing the net and watching reruns of Fritz The Cat. :p
 
This comes up every now and then in the DC forum. As best as I can remember, the problem arises from the fact that
I could not find any posts relating to this in that forum; maybe the search function is screwed up at the moment?

1.) all the algorithms used to calculate pi tend to be recursive, so it's hard to break it into work units
What about the Chudnovsky Brothers' sum?

Which leaves open the issue of periodically transferring 50MB numbers over the internet. The easiest way around that that I see is creating large WUs, but it still seems to be a problem. Maybe looking at how the PiHex people do it would help.
 
Status
Not open for further replies.