Healthy Organic Living - Live more naturally.
Enjoy life more by healthier with a healthy lifestyle.

Tuesday, 03 July 2012

CONSTRUCTING A SIMULATOR OF CELLULAR AUTOMATONS IN DELPHI

Are very used models emMatemtica, Physics and Biology, for example, for systems that interact with suavizinhana. They can be used to simulate fires, systems predator-canine tooth, nets of interactions, proliferation of virus, among others. The interest in this type of system crescente, therefore many organisms livings creature or agglomerations have a comportamentosemelhante to the one of a cellular automaton. The cellular automatons had been introduzidospor von Neumann and Ulam as models to study growth processes eauto-reproduction.

Any system with many identical elements that interagemlocal and deterministicamente can be shaped using cellular automatons (source: WIKIPDIA). The state of a cell of the grate determinado for the states of the neighboring cells to the same one. For example, if umaclula will be characterized by two states, 1 and 0, value of these states to podeser definitive from the values of the states of the neighboring cells. In this article, it is intended to show a program made in Delphi that simulao behavior of a cellular automaton. The graphical part reveals to all here doprograma, used components, as well as the code corresponding source, comexplicao of the more important stretches of code. 2. The Osestados PROGRAM possible for the automaton is empty Xe (empty grate), as it indicates the figure: The evolution doautmato will depend on the initial configuration of the cells of the first line dagrade, as it shows the figure to follow: If no cell will be marcadacom the X, then the ficarovazias grates. But, to each configuration of different marking of the X in the grate, it will determine different evolutions for the automaton, comnos examples of the figures below: The next step is to explain main the component funodos of the program, in accordance with the figure below: Button 1 servepara to activate the automaton..