Artificial Intelligence - A Modern Approach by Russell and Norvig and
Machine Learning by Mitchell offer high level overviews of genetic algorithms.
The population's overall fitness will increase over time due to the way the GA works. It's common to basically have three ways to create the new population:
- Elite children
- Crossover
- Mutation
Elite children are the elements of the population with the highest fitness. A fixed number of these elites will automatically join the next generation.
Crossover combines two individuals to produce two offspring. The parents are generally chosen probabilistically according to the following function, where h is an individual hypothesis, \Phi(h) is the fitness function, and n is the population size:
P(h_i \text{ is selected}) = \frac{\Phi(h_i)}{\sum_{j=1}^n \Phi(h_j)}
Then, you either do single-point crossover, two-point crossover, or uniform crossover to create two offspring.
Mutation is then applied to the population. Generally speaking, a percentage of the population is chosen with uniform probability and each chosen individual has a random bit inverted.
So, basically, the fitness function drives which individuals are selected to move on; technically speaking, the fitness function solely assigns a numerical score representing the quality of the hypothesis; the actual genetic algorithm decides which individuals are kept. Crossover is a method to generate new individuals which may or may not be more fit than the parents.
Of course, the above details can change based on the way the GA is implemented.