genetic-algorithm-brainfuck-generator

所属分类:内容生成
开发工具:C++
文件大小:19KB
下载次数:0
上传日期:2016-03-29 00:21:00
上 传 者sh-1993
说明:  遗传算法脑干发生器,,
(genetic-algorithm-brainfuck-generator,,)

文件列表:
CMakeLists.txt (654, 2016-03-29)
LICENSE (1075, 2016-03-29)
graph.png (3897, 2016-03-29)
png.plot (147, 2016-03-29)
src (0, 2016-03-29)
src\GeneticAlgorithm (0, 2016-03-29)
src\GeneticAlgorithm\gene.cpp (3429, 2016-03-29)
src\GeneticAlgorithm\gene.h (1509, 2016-03-29)
src\GeneticAlgorithm\geneticalgorithm.cpp (4328, 2016-03-29)
src\GeneticAlgorithm\geneticalgorithm.h (3035, 2016-03-29)
src\RandomGenerator (0, 2016-03-29)
src\RandomGenerator\randomgenerator.cpp (171, 2016-03-29)
src\RandomGenerator\randomgenerator.h (778, 2016-03-29)
src\ThreadPool (0, 2016-03-29)
src\ThreadPool\threadpool.cpp (967, 2016-03-29)
src\ThreadPool\threadpool.h (1239, 2016-03-29)
src\interpretor (0, 2016-03-29)
src\interpretor\interpretor.cpp (4700, 2016-03-29)
src\interpretor\interpretor.h (1660, 2016-03-29)
src\main.cpp (7339, 2016-03-29)

# genetic-algorithm-brain***-generator This is a project inspired by http://www.primaryobjects.com/2013/01/27/using-artificial-intelligence-to-write-self-modifying-improving-programs/ It use genetic algorithm to evolv brain*** program. For now the only program that have been generated print text. It use threads to run and mutates multiple program programs at the same time. The mutation and the fitness function were made to be the most modulable possible so it's very easy to try to generate new kind of program. The program also output the current best fitness and the current time at each new generation so that a graph can be generated using gnuplot, I included the gnuplot script so if you have it installed you can just open a terminal and go to the project directory then type "gnuplot png.plot" The dynamic nature of the "Generation Generator" let you specifie how the next generation of program will be generated in a simple way will keeping control over it. It is especially usefull if the generation rule shoudl change over time, for exemple you might want the half of the population to be generated with a high mutation rate, a quarter with a low mutation rate and another quarter using crossover with short crossing section. And later when the fitness is at half of the target one maybe you'll want half of the generation to be generated using crossover with longer crossing section and the other half with very low mutation rate. You can also set for each generator if they should select the program to mutate using roulette selection, completly at random, or choose the one with best fitness. The current code can, with the appropriated setting, generate a program that output the string "Kalle" in about 4 seconds

近期下载者

相关文件


收藏者