The local rule for a CA is generally defined as a state-transition table. During the evolution of the CA by computer programming,
it is necessary for the programming to firstly decide the states of the cell and the neighbors at current moment
by ‘if-else’ sentences, and then the evolution state of the cell at next moment is obtained according to the state-transition
table. However, it is a huge waste in resource allocation and quite slow in computing speed to design the complex programming
structure and to adopt a large number of ‘if-else’ programming sentences. In this paper, we define a function of the
local rule for an Elementary Cellular Automaton by constructing a recognition function of the states of the cell and the neighbors.
Therefore, a huge number of calculations by ‘if-else’ sentences are transferred to the function calculation due to the adoption of the analytic function of the local rule during the evolution of the ECA. As a result, the programming structure is
optimized and the programming efficiency is enhanced.
The local rule for a CA is generally defined as a state-transition table. During the evolution of the CA by computer programming,it is necessary for the programming to firstly decide the states of the cell and the neighbors at current momentby ‘if-else’ sentences, and then the evolution state of the cell at next moment is obtained according to the state-transitiontable. However, it is a huge waste in resource allocation and quite slow in computing speed to design the complex programmingstructure and to adopt a large number of ‘if-else’ programming sentences. In this paper, we define a function of thelocal rule for an Elementary Cellular Automaton by constructing a recognition function of the states of the cell and the neighbors.Therefore, a huge number of calculations by ‘if-else’ sentences are transferred to the function calculation due to the adoption of the analytic function of the local rule during the evolution of the ECA. As a result, the programming structure isoptimized and the programming efficiency is enhanced.
การแปล กรุณารอสักครู่..