Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the "Hello World!" of genetic algorithms good for?

I found this very cool C++ sample , literally the "Hello World!" of genetic algorithms.

I so decided to re-code the whole thing in C# and this is the result.

Now I am asking myself: is there any practical application along the lines of generating a target string starting from a population of random strings?

EDIT: my buddy on twitter just tweeted that "is useful for transcription type things such as translation. Does not have to be Monkey's". I wish I had a clue.

like image 820
JohnIdol Avatar asked Mar 29 '09 00:03

JohnIdol


People also ask

What are genetic algorithms good for?

They are commonly used to generate high-quality solutions for optimization problems and search problems. Genetic algorithms simulate the process of natural selection which means those species who can adapt to changes in their environment are able to survive and reproduce and go to next generation.

What problems are genetic algorithms good at solving?

Genetic algorithms are commonly used to generate high-quality solutions to optimization and search problems by relying on biologically inspired operators such as mutation, crossover and selection.

Where is genetic algorithm used in real life?

The generation of a drug to diagnose any disease in the body can have the application of genetic algorithms. In various examples, we find the use of genetic optimization in predictive analysis like RNA structure prediction, operon prediction, and protein prediction, etc.

What is the use of genetic algorithm in intelligent systems?

A genetic algorithm is used to solve complicated problems with a greater number of variables & possible outcomes/solutions. The combinations of different solutions are passed through the Darwinian based algorithm to find the best solutions. The poorer solutions are then replaced with the offspring of good solutions.


2 Answers

Is there any practical application along the lines of generating a target string starting from a population of random strings?

Sure. Imagine any scenario in which you know how to evaluate the fitness of a particular string, and in which the choices are discrete and constrained in some way:

  • Picking pronounceable names ("Xhjkxc" has low fitness; "Artekzo" has high fitness)
  • Trying out a series of chess moves
  • Guessing the combination to a safe, assuming you can tell how close you are to unlocking each tumbler
  • Picking phone numbers that evaluate to words (e.g. "843-2378" has high fitness because it spells "THE-BEST")
like image 181
John Feminella Avatar answered Sep 20 '22 06:09

John Feminella


No. Each time you run the GA, you are giving it the eventual answer. This is great for showing how a GA works and to show how powerful it can be, but it does not have any purpose beyond that.

like image 35
Kevin Crowell Avatar answered Sep 21 '22 06:09

Kevin Crowell