13.07.2015 Views

Introduction to genetic algorithms with Java applets

Introduction to genetic algorithms with Java applets

Introduction to genetic algorithms with Java applets

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EncodingTree EncodingTree encoding is used mainly for evolving programs or expressions, for <strong>genetic</strong> programming.In tree encoding every chromosome is a tree of some objects, such as functions or commands inprogramming language.Chromosome AChromosome B( + x ( / 5 y ) ) ( do_until step wall )Example of chromosomes <strong>with</strong> tree encodingTree encoding is good for evolving programs. Programing language LISP is often used <strong>to</strong> this, becauseprograms in it are represented in this form and can be easily parsed as a tree, so the crossover andmutation can be done relatively easily.Example of Problem: Finding a function from given valuesThe problem: Some input and output values are given. Task is <strong>to</strong> find a function, whichwill give the best (closest <strong>to</strong> wanted) output <strong>to</strong> all inputs.Encoding: Chromosome are functions represented in a tree.(c) Marek Obitko, 1998http://cs.felk.cvut.cz/~xobitko/ga/encoding.html (3 of 3) [7.5.2000 16:33:10]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!