A schema (pl.: schemata) is a template in computer science used in the field of genetic algorithms that identifies a subset of strings with similarities at certain string positions. Schemata are a special case of cylinder sets, forming a basis for a product topology on strings. In other words, schemata can be used to generate a topology on a space of strings.
Description For example, consider binary strings of length 6. The schema 1**0*1 describes the set of all words of length 6 with 1's at the first and sixth positions and a 0 at the fourth position. The * is a wildcard symbol, which means that positions 2, 3 and 5 can have a value of either 1 or 0. The order of a schema is defined as the number of fixed positions in the template, while the defining length δ ( H ) {\displaystyle \delta (H)} is the distance between the first and last specific positions. The order of 1**0*1 is 3 and its defining length is 5. The fitness of a schema is the average fitness of all strings matching the schema. The fitness of a string is the numerical score that tells how good the solution it represents is, calculated using a rule designed for the specific problem.
Length The length of a schema H {\displaystyle H} , called N ( H ) {\displaystyle N(H)} , is defined as the total number of nodes in the schema. N ( H ) {\displaystyle N(H)} is also equal to the number of nodes in the programs matching H {\displaystyle H} .
Disruption If the child of an individual that matches schema H does not itself match H, the schema is said to have been disrupted.
Propagation of schema In evolutionary computing such as genetic algorithms and genetic programming, propagation refers to the inheritance of characteristics of one generation by the next. For example, a schema is propagated if individuals in the current generation match it and so do those in the next generation. Those in the next generation may be (but do not have to be) children of parents who matched it.
The Expansion and Compression Operators Recently schema have been studied using order theory. Two basic operators are defined for schema: expansion and compression. The expansion maps a schema onto a set of words which it represents, while the compression maps a set of words on to a schema. In the following definitions Σ {\displaystyle \Sigma } denotes an alphabet, Σ l {\displaystyle \Sigma ^{l}} denotes all words of length l {\displaystyle l} over the alphabet Σ {\displaystyle \Sigma } , Σ ∗ {\displaystyle \Sigma _{*}} denotes the alphabet Σ {\displaystyle \Sigma } with the extra symbol ∗ {\displaystyle *} . Σ ∗ l {\displaystyle \Sigma _{*}^{l}} denotes all schema of length l {\displaystyle l} over the alphabet Σ ∗ {\displaystyle \Sigma _{*}} as well as the empty schema ϵ ∗ {\displaystyle \epsilon _{*}} . For any schema s ∈ Σ ∗ l {\displaystyle s\in \Sigma _{*}^{l}} the following operator ↑ s {\displaystyle {\uparrow }s} , called the e x p a n s i o n {\displaystyle expansion} of s {\displaystyle s} , which maps s {\displaystyle s} to a subset of words in Σ l {\displaystyle \Sigma ^{l}} :
↑ s := { b ∈ Σ l | b i = s i or s i = ∗ for each i ∈ { 1 , . . . , l } } {\displaystyle {\uparrow }s:=\{b\in \Sigma ^{l}|b_{i}=s_{i}{\mbox{ or }}s_{i}=*{\mbox{ for each }}i\in \{1,...,l\}\}}
… excerpt ends here. Continue reading the full article.



