views:

117

answers:

2

Hi, I started-off by making a chess AI engine (simple min-max), and ended-up trying to develop something like BOINC, but MUCH more lighter/re-distributable and most importantly decentralized. I was searching for sample applications to run on it and test it, but all I could find was some "impossible to understand" pi value calculators and some fractal makers.

While I try to understand these codes, meanwhile, I wanted to ask: Where can I find some parallelize-able sample algorithms/codes (any language, I am ready to make interfaces) which are used in Real-life computing (grid/cluster/cloud all are same in my mind).

A: 

Legion: Build your own virtual super computer with Silverlight Written in C# using Silverlight. From the article "Legion is a grid computing framework that uses the Silverlight CLR to execute user definable tasks." It is browser-based and can run on any platform that supports silverlight.

Jerry
+1  A: 

Here's a simple C++ Pi calculator. It's part of a test application I wrote for BOINC:

http://pastebin.com/HvFvj1mV

It's just a single C++ header(!) file. It uses this (also header-only) random number generator: http://www-personal.umich.edu/~wagnerr/MersenneTwister.h but it should be trivial to change to use anything else.

In the full app, I assign a different random seed to each client, then the client app runs calculate(10000000) a few hundred times and sends both ‘hits’ and ‘samples’ back to the server. The server gets a progressively-better value of Pi by calculating sum(hits) / sum(samples) * 4.

Nicolás