文件名称:lifegame_cpp
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:5.13kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
元胞自动机的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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.