Choose a coding to represent a parameters,a selection operator ,
acrossover operator,and a mutation operator.Choose a population size n,a
crossover probability,Pc,and a mutation probability,Pm.
Initialise a random poplationof strings of size l.Choose a maximum allowable
generation number tmax.Set t=0.
Evaluate each string in the population.
if t>tmax> or other termination criteria is satisfied,
Terminate.
Perform reproduction on population.
Perform crossover on randon pairs of strings.
Perform mutation on every string.
Evaluate strings in the new population.Set t=t+1 and go to Step 3..