News for hackers. Stuff that matters.
Re:The "Hello World" of genetic algorithms by peteretep on Tuesday April 03, 2012 @08:08AM (#3792562)
Maybe I'm way off the mark here, but calling a function that's iterating towards a target string doesn't really feel like a genetic algorithm. If you know the exact output already, you aren't really testing 'fitness' in any meaningful sense - you're testing closeness. Why not just use A* to path-find your way to it?

Genetic algorithms are surely meant for iterating towards a goal you can't define, other than fitness towards a certain set of criteria - if you know what the target looks like, what's the point in iterating towards it, rather than just going at it?

Re:The "Hello World" of genetic algorithms by peteretep on Tuesday April 03, 2012 @08:13AM (#3792571)
I think what I'm trying to say is: if your fitness function contains the solution, then your problem is entirely contrived, and not a good illustration of genetic algorithms - you're just using a very round-about way of calculating something you already knew, inefficiently.