Cultured Perl: Genetic Algorithms Applied with Perl
By Teodor Zlatanov2004-11-03
Conclusion
The evolutionary genetic algorithm is a fascinating topic that can hardly be exhausted in a single article. I hope you experiment with the examples and create your own Darwinian breeding grounds. It is especially entertaining to play with the fitness function in the second example, and watch English words appear out of noise.
The techniques shown in the examples range from beginner to advanced level, so try to understand them thoroughly. Often there is room for improvement. The vec() function is especially interesting. It is perfectly suited for long bit vectors such as DNA or other numeric data.
Write your own genetic algorithm implementation. Compare it with mine, and learn from the shortcomings (not necessarily yours, either). Implementing an algorithm is tricky business. There's a lot you can do wrong, and only a few ways to get it right.
Tutorial Pages:
» Create Your Own Darwinian Breeding Grounds
» History
» So What is the Genetic Algorithm?
» A Simple Example
» Breeding words
» Conclusion
» Resources
First published by IBM DeveloperWorks
| Related Tutorials: » Random subroutines in Perl » Log Script Use » Creating Perl Modules for Web Sites » Bit Vector, Using Perl Vec » Build a Perl/CGI Voting System » Perl Range Operator |
