Answers.Body: <p>Yes, if you follow the original implementation the children will inherit the topology from the most fit parent.</p>
  
  <p>Keep in mind that the goal is to obtain a good population, maintaining the genetic diversity high but at the same time selecting the best individuals from the population; so, in theory you are allowed to give the topology you prefer to the children.</p>
  
  <p>Here there is an example of an alternative topology inheritance in which a child gets the genes that lead to an excess node while another child gets only the genes that create a new connection. </p>
  
  <p><a href="https://i.sstatic.net/9JUlF.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9JUlF.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-09T20:56:31.710Z
Answers.LastActivityDate: 2019-02-09T20:56:31.710Z
Answers.UserDisplayName: Alvin Sartor
Body: <p>I'm trying to implement the NEAT Algorithm using c#, based off of Kenneth O. Stanley's paper. On page 109 (12 in the pdf) it states "Matching genes are inherited randomly, whereas disjoint genes (those that do not match in the middle) and excess genes (those that do not match in the end) are inherited from the more fit parent."<br>
  Does this mean that the child will always have the exact structure that the more fit parent has? It seems like the only way the structure could differ from crossover was if the two parents were equally fit.</p>
  
Tags: <neural-networks><genetic-algorithms><neat>
Title: Using NEAT, will the child of two parent genomes always have the same structure as the more fit parent?
UserDisplayName: Alex Charters
ThreadText: # Using NEAT, will the child of two parent genomes always have the same structure as the more fit parent?
  
  (Asked by: username_0 on 2018-12-23)
  
  I'm trying to implement the NEAT Algorithm using c#, based off of Kenneth O. Stanley's paper. On page 109 (12 in the pdf) it states "Matching genes are inherited randomly, whereas disjoint genes (those that do not match in the middle) and excess genes (those that do not match in the end) are inherited from the more fit parent."  
  Does this mean that the child will always have the exact structure that the more fit parent has? It seems like the only way the structure could differ from crossover was if the two parents were equally fit.
  
  **Tags:** neural-networks, genetic-algorithms, neat
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-02-09. Score: 1 | Accepted answer
  
  Yes, if you follow the original implementation the children will inherit the topology from the most fit parent.
  
  Keep in mind that the goal is to obtain a good population, maintaining the genetic diversity high but at the same time selecting the best individuals from the population; so, in theory you are allowed to give the topology you prefer to the children.
  
  Here there is an example of an alternative topology inheritance in which a child gets the genes that lead to an excess node while another child gets only the genes that create a new connection.
  
  [![enter image description here](https://i.sstatic.net/9JUlF.png)](https://i.sstatic.net/9JUlF.png)
  
  
  ---
  
  