News for hackers. Stuff that matters.
Re:Show HN: A Genetic Algorithm I wrote in JavaScript to evo... by abhikshah on Monday December 13, 2010 @11:16PM (#2003101)
The fitness function does take char location into account. In python, it'd be -1*sum(abs(x-y) for x,y in zip(chromosome,target)).

The gradient here is continuous and smooth. Problems where GA is an appropriate solution have fitness landscapes that are much more pathological.

There are no comments on this comment yet.