Skip to main content
16 votes
Accepted

What exactly are genetic algorithms and what sort of problems are they good for?

Evolutionary algorithms are a family of optimization algorithms based on the principle of Darwinian natural selection. As part of natural selection, a given environment has a population of individuals ...
Franck Dernoncourt's user avatar
12 votes
Accepted

How should I encode the structure of a neural network into a genome?

Section 4.2 of "Essentials of Metaheuristics" has a wealth of information on alternative ways of encoding graph structures via Genetic Algorithms. With particular regard to evolving ANNs, I would ...
NietzscheanAI's user avatar
10 votes
Accepted

What is a Markov chain and how can it be used in creating artificial intelligence?

A Markov model includes the probability of transitioning to each state considering the current state. "Each state" may be just one point - whether it rained on specific day, for instance - or it might ...
Ben N's user avatar
  • 2,609
10 votes
Accepted

Is a genetic algorithm an example of artificial intelligence?

An ability that is commonly attributed to intelligence is problem solving. Another one is learning (improving itself from experience). Artificial intelligence can be defined as "replicating ...
rcpinto's user avatar
  • 2,128
9 votes

What exactly are genetic algorithms and what sort of problems are they good for?

A genetic algorithm is an algorithm that randomly generates a number of attempted solutions for a problem. This set of attempted solutions is called the "population". It then tries to see how well ...
S.L. Barth is on codidact.com's user avatar
9 votes

How does novelty search work?

Novelty search selects for "novel behavior", by some domain-dependent definition of novelty. For example, novelty in a Maze-solving domain might be "difference of route explored". Eventually, networks ...
micimize's user avatar
  • 191
9 votes
Accepted

What is the difference between reinforcement learning and evolutionary algorithms?

Evolutionary algorithms (EAs) are a family of algorithms inspired by the biological evolution that can be used to solve (constrained or not) optimization problems where the function that needs to be ...
nbro's user avatar
  • 41.1k
8 votes
Accepted

What is a trap function in the context of a genetic algorithm?

"Trap" functions were introduced as a way to discuss how GAs behave on functions where sampling most of the search space would provide pressure for the algorithm to move in the wrong direction (wrong ...
deong's user avatar
  • 611
8 votes

How does novelty search work?

As explained in an answer to this AI SE question, GAs are 'satisficers' rather than 'optimizers' and tend not to explore 'outlying' regions of the search space. Rather, the population tends to cluster ...
NietzscheanAI's user avatar
8 votes

How do mutation and crossover work with real-valued chromosomes?

As @Thomas W said, you can be pretty immaginative when you're developing mutation and crossover methods. Each problem has its own caracteristics and, therefore, requires a different strategy. BUT, ...
Alvin Sartor's user avatar
7 votes

What evolutionary algorithms are there that model epigenetics?

Over the last few years, evolutionary computation research has shown increasing interest in including some aspect of epigenetics. For example: A 2008 paper by Tanev and Yuta Work from Lee Spector's ...
NietzscheanAI's user avatar
7 votes
Accepted

Why is cross-over a part of genetic algorithms?

Mutation is usually defined to be a global operator, i.e. iterated mutation is (eventually) capable of reaching every point in the vector space defined by the geneome. In that sense, mutation alone is ...
NietzscheanAI's user avatar
7 votes

What exactly are genetic algorithms and what sort of problems are they good for?

There are a number of good answers here explaining what genetic algorithms are, and giving example applications. I'm adding some general purpose advice on what they are good for, but also cases where ...
Harsh's user avatar
  • 1,325
7 votes

What exactly are genetic algorithms and what sort of problems are they good for?

This answer requests a practical example of how one might be used, which I will attempt to provide in addition to the other answers. They seem to due a very good job of explaining what a genetic ...
Raven's user avatar
  • 171
7 votes
Accepted

How do mutation and crossover work with real-valued chromosomes?

You have a genome with certain genes: genome = { GeneA: value, GeneB: value, GeneC: value } So take for example: ...
Thomas Wagenaar's user avatar
7 votes
Accepted

Should I use neural networks or genetic algorithms to solve Gomoku?

For Gomoku, it seems a bit of an overkill to use neural networks or the genetic algorithm as both take a while, and more often than not, don't go how you want it to. The Gomoku game tree is rather ...
sma's user avatar
  • 823
6 votes

What exactly are genetic algorithms and what sort of problems are they good for?

As observed in another answer, all you need to apply Genetic Algorithms (GAs) is to represent a potential solution to your problem in a form that is subject to crossover and mutation. Ideally, the ...
NietzscheanAI's user avatar
6 votes
Accepted

Apart from Reinforcement Learning, are there any other machine learning approaches to play video games?

As I see it, it all comes down to game theory, which can be said to form the foundation of successful decision making, and is particularly useful in a context, such as computing, where all parameters ...
DukeZhou's user avatar
  • 6,235
6 votes

What is the difference between memetic algorithms and genetic algorithms?

A genetic algorithm is an algorithm, based on natural selection (the process that drives biological evolution), for solving both constrained and unconstrained optimization problems. A memetic ...
Simbarashe Timothy Motsi's user avatar
6 votes
Accepted

Could GA's determine fitness by "Fighting" against each other?

i'm the main developer of Neataptic, a Javascript neuro-evolution library. Very effective! Realise that this is how real-life evolution happened as well: we kept on improving against other species, ...
Thomas Wagenaar's user avatar
6 votes
Accepted

Can genetic algorithms be used to learn to play multiple games of the same type?

Genetic algorithms and Neural Networks both are "general" methods, in the sense that they are not "domain-specific", they do not rely specifically on any domain knowledge of the game of Mario. So yes, ...
Dennis Soemers's user avatar
  • 10.4k
5 votes

How does mating take place in NEAT?

NEAT has a constant number of organisms in its population, which prevents overpopulation from happening. The process of mating includes the following steps. The worst networks from every species ...
Boris's user avatar
  • 151
5 votes
Accepted

Is it possible to separately evolve a part of the population?

There have been extensive studies within evolutionary computation in the area of island models and niching for doing exactly this. The advantages of this approach include greater population diversity (...
NietzscheanAI's user avatar
5 votes

Why is cross-over a part of genetic algorithms?

Crossover allows to combine two parents (vs. mutation, which only uses one parent). In some cases, it is useful (e.g., if you train a FPS bot, if one parent is good at shooting and another parent is ...
Franck Dernoncourt's user avatar
5 votes

Is artificial life really life or not?

If you read Steven Levy's book, Artificial Life,you will find, as I did, the distinction between biological and "artificial" life blurred. If you think about it, what exactly is "life", anyway? A ...
Lord Alveric's user avatar
5 votes

Is artificial life really life or not?

"Life" is a definition humans use to classify objects according to the types of behavior humans perceive as unique to living creatures. Scientists and philosophers tend to define something ...
Moon's user avatar
  • 151
5 votes
Accepted

What does "probabilistically" mean?

In a genetic algorithm, crossover (recombination) is the analogy to mating in the real world. For example, you have some genetic information from each parent. In the case of an optimization where you ...
pshlady's user avatar
  • 484
5 votes
Accepted

How to evaluate a NEAT neural network?

Consider the execution order, 5 will have an invalid value because it hasn't been set form 3 yet. However the second time around it should have a value set. The invalid value should falloff after ...
Zakk Diaz's user avatar
  • 366
5 votes

How to evaluate a NEAT neural network?

Following is the pseudo code of the NEAT's network evaluation (converted from original source code), ...
Morpheus's user avatar
  • 170
5 votes

What is the best programming language to learn to implement genetic algorithms?

There is no "best language" for any problem. There are too many variables to consider, even when advising a single person with a single project plan. If the choice is between Python and C++, I would ...
Neil Slater's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible