文件名称:lifegame_cpp
介绍说明--下载内容均来自于网络,请自行研究使用
元胞自动机的c++实现,详细注释版
基于10*10矩阵的元胞自动机,可以自由设置初始状态和变化条件。还可以侦测循环状态的周期和起始位置。
侦测循环状态用了折半追尾的算法(我瞎起的名字,打个比方就是一个人1秒走1步,一个人2秒走一步,两个人碰上了就说明路是环状的)。
代码给有用的人参考一下,有详细注释。工程选择win32控制台工程。编译环境vc6.0或者vc2005都试验过了可以编译。
-Cellular Automata c++ implementation, detailed annotation version 10* 10 matrix based on cellular automata, are free to set the initial state and changing conditions. Also can detect the state of the cycle and the cycle begins. With a binary state detection cycle rear-end of the algorithm (the name from my blind, analogy is a person one second to go one step, one step for 2 seconds, two people run into is illustrated by way circular). Code reference to the useful people, detailed notes. Engineering select win32 console project. Build environment vc6.0 or vc2005 have tested that can be compiled.
基于10*10矩阵的元胞自动机,可以自由设置初始状态和变化条件。还可以侦测循环状态的周期和起始位置。
侦测循环状态用了折半追尾的算法(我瞎起的名字,打个比方就是一个人1秒走1步,一个人2秒走一步,两个人碰上了就说明路是环状的)。
代码给有用的人参考一下,有详细注释。工程选择win32控制台工程。编译环境vc6.0或者vc2005都试验过了可以编译。
-Cellular Automata c++ implementation, detailed annotation version 10* 10 matrix based on cellular automata, are free to set the initial state and changing conditions. Also can detect the state of the cycle and the cycle begins. With a binary state detection cycle rear-end of the algorithm (the name from my blind, analogy is a person one second to go one step, one step for 2 seconds, two people run into is illustrated by way circular). Code reference to the useful people, detailed notes. Engineering select win32 console project. Build environment vc6.0 or vc2005 have tested that can be compiled.
相关搜索: 元胞自动机
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lifegame_cpp.cpp
queue.h
queue.h