Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ga-helloWorld

A simple example of genetic algorithm using jenetics (http://jenetics.io/).

This example shows how a randomly generated string evolves to match a target string. The fitness function (ie the function evaluating each population member) compute the Levenshtein distance between the target String and the chromosome string and reward chromosomes closer to the target value.

Example

Stream max size population result Levenshtein distance
100 50 heilx rvrcd 5
200 50 hlellc wolz 4
500 50 hello ovrld 2
1000 50 hello wjrld 1
5000 50 hello world 0

License

Apache2

Author

Sébastien BENARD - benard.se@gmail.com

About

A simple example of genetic algorithm

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages