~/ learn/ comp-456/ cards/ Genetic algorithms
1 of 5

Genetic programming: read this Lisp s-expression tree as one crossover subtree.

Genetic programming: read this Lisp s-expression tree as one crossover subtree.

Answer

(* 4 6)

In genetic programming a program is a Lisp tree; (* 4 6) is a subtree (apply * to 4 and 6 = 24). Crossover swaps such subtrees between two parent programs, always producing a valid program when the function/terminal sets satisfy closure.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/1c2f44cb-da6c-4363-ab31-2566d120352c/flashcard utf-8 LF