Genetic algorithm:Solution of P&D

Genetic Programming
1:init the DNA
2:clone the current DNA
3:mutate the clone
4:find how many combo
5: if the new DNA make more combo than the previous did, overwrite the current DNA with the new DNA
6:goto 2