Expression Trees: The Phenotype
As shown above, the genes of gene expression programming have all the same size. However, these fixed length strings code for expression trees of different sizes. This means that the size of the coding regions varies from gene to gene, allowing for adaptation and evolution to occur smoothly.
For example, the mathematical expression:
can also be represented as an expression tree:
where “Q” represents the square root function.
This kind of expression tree consists of the phenotypic expression of GEP genes, whereas the genes are linear strings encoding these complex structures. For this particular example, the linear string corresponds to:
01234567Q*-+abcd
which is the straightforward reading of the expression tree from top to bottom and from left to right. These linear strings are called k-expressions (from Karva notation).
Going from k-expressions to expression trees is also very simple. For example, the following k-expression:
01234567890Q*b**+baQba
is composed of two different terminals (the variables “a” and “b”), two different functions of two arguments (“*” and “+”), and a function of one argument (“Q”). Its expression gives:
Read more about this topic: Gene Expression Programming
Famous quotes containing the word expression:
“I fear chiefly lest my expression may not be extra-vagant enough, may not wander far enough beyond the narrow limits of my daily experience, so as to be adequate to the truth of which I have been convinced.”
—Henry David Thoreau (18171862)