VC++GEP函数发掘
摘要:
#include<stdlib.h>
#include<time.h>
#include<math.h>
#include<string.h>
constdoublepi=3.1415927;
constintnsymbols=5;//2terminalsymbols(noarguments)xand1,所有节点个数
constintterminals=2;//terminalsymbolsfirst,叶子节点个数2
constcharsymbols[nsymbols]={'1','x','+','-','*'};
constintn=2;//for+,-and*whichtake2arguments,函数需要两个参数
inth=10;//单基因头部长度