| Algorithm 2: Generation of a chromosome template. |
| Input:N, the depth of the derivation tree |
| template = T |
| for to N do |
| template = template + template + F |
| end for |
| Algorithm 2: Generation of a chromosome template. |
| Input:N, the depth of the derivation tree |
| template = T |
| for to N do |
| template = template + template + F |
| end for |