Zrušen

Diffusion C++ or Java

Diffusion

A simple model of diffusion and pattern formation can be made as follows.

Imagine a grid of say, 400 x 400 points upon which are scatters, say 3000 atoms randomly. Now have an atom enter the grid from some random point on the edge, and make a rule that the atom will move around the grid until either it leaves the grid, or else it comes to a point which is immediately next to point containing an atom, in which case it will stick to that point. HAve the motion of the atom "almost" random - if it enters from the left, say, have it preferentially move to the right (say, with probability 40%), but it could also move up or down (say, with probabilities of 25% each) or back to the left (with probability, say 10%). Now have another atom enter the grid, and follow the same rule, and so on. Write a program which will take command-line options indicating the size (in pixels) of the (square) grid to consider, the initial number of atoms to scatter randomly about the grid, and the number of atoms that enter the grid, and which will then produce a png (or jpeg) image of the results, using the gd library. Include in your output 4-6 images representing an interesting range of parameters,

This can be done in C++, or java preferably

I need this right away, when can it be done?

Dovednosti: Programování v C, Java

Zobrazit více: points line, or java, random number library, diffusion java, about c, the edge, stick, square, say, or, options java, leaves, java c, initial, gd, edge, c simple, c java, another back, random line program, grid program, java using, almost, consider, using program java

O zaměstnavateli:
( 1 recenze ) Canada

IČ projektu: #979

2 freelancerů učinili na tento projekt nabídku v průměrné výši $100

niftysoft

Hi there, Greetings, Niftysoft Solutions is a proven leader in IT services. Our hand picked team of professionals has extensive experience in a number of modules designed to meet the most rigid specifications. We revi Více

$100 USD za 3 dní
(1 recenze)
3.9
rishikumar2

Objective · To work with an organization to build upon my custom ability with a problem solving and solution oriented approach by contributing my 100% effort in growth of the organization. · To achieve highest goal Více

$99 USD za 6 dní
(0 recenzí)
0.0