About Archive Tag Cloud Translations RSS

You are writing a comment about Genetic Algorithms: Cool Name & Damn Simple, here is a quick summary:

Genetic Algorithms are one of the most natural approaches to optimization. Did you learn about evolution in grade school? Then you already "get" GA.


You are responding to this comment written by Jay on January 3rd 2009, 11:29.

This is a great walkthrough! I've done some GA programming but mostly in C and python (including your great examples of list compressions and reduce()) seems to make it so much easier!

I might suggest abstracting out some of the bulk of the evolve() function just for readability. Maybe making "mutate()", "crossover()", etc...

Still very helpful and I'd love to see an example of genetic programming with python too!


Please be aware that comment forms go stale after one hour.





Comments may make use of LifeFlow MarkDown. Raw html will be escaped.


Quick Introduction to LifeFlow MarkDown Syntax

A highlighted code block:

@@ ruby
def a (b, c):
  b * c
end
@@

Other common languages work as well: scheme, python, java, html, etc.

Other markdown syntax:

 ### This is an h3 title
#### This is an h4 title
**this is bold**
*this is italics*

1. This is an
2. ordered list

* And an unordered
* list too

[this is a link](http://www.lethain.com/ "Lethain")