SC-Chapter 4 Notes
SC-Chapter 4 Notes
4. Simulated Annealing
– A single-solution, Boltzmann-inspired method that probabilistically accepts worse
moves to escape local optima, mirroring a thermal cooling process .
3. What are the operators involved in a simple genetic algorithm? Explain each with
examples.
A simple genetic algorithm uses three core operators to evolve the population:
1. Reproduction (Selection)
Role: Builds the mating pool by probabilistically copying fitter individuals.
Proportional (Roulette-Wheel) Selection:
• Each chromosome i with fitness Fi is selected with probability Pi = Fi / ΣF.
• Form the mating pool by mapping random numbers to cumulative fitness ranges.
Other selection schemes include Boltzmann selection, tournament selection, rank selection, and
steady-state selection.
2. Crossover (Recombination)
Role: Combines genetic material from two parents to explore new regions of the search space.
Single-Point Crossover Example:
Parent1: 1011|0010
Parent2: 0100|1111
→ Offspring1: 10111111
→ Offspring2: 01000010
3. Mutation
Role: Introduces random variation by flipping bits with a small probability Pm.
4. What is crossover? What is the crossover rate? What are the types of crossover? What
are the types of multipoint crossover?
Crossover is the recombination operator in a GA that exchanges genetic material between two
parent chromosomes to produce offspring. It typically proceeds in three steps:
3. Swap the segments to the right of that point, creating two new offspring
The crossover rate Pc is the probability that a selected pair of parents will undergo crossover.
Mutation ensures that the genetic algorithm does not get stuck at local optima by introducing
random changes, thereby helping the algorithm explore new regions of the solution space.
● It restores lost genetic material and introduces new genetic structures into the
population.
● Without mutation, after several generations, all chromosomes may become identical, and
further evolution would halt.
Mutation Rate
The mutation rate pmp_mpm is the probability that a given bit will be flipped during the
mutation operation.
● It is generally kept very low (typically between 0.001 to 0.1) to maintain a balance
between exploration and exploitation.
● A very high mutation rate would turn the search into a random search, while too low a
rate could cause premature convergence
Example of Mutation
● In this example, notice how the first bit in string 1 and third bit in string 4 were
mutated (i.e., flipped).
Thus, through mutation, even after crossover has combined the parents' genes, new
variations are still introduced to enhance the diversity and robustness of the genetic
search.
Summary:
Reproduction ensures that fit individuals are copied more often, and poor individuals are
eliminated. This operator is probabilistic, not deterministic — meaning even weaker individuals
might occasionally be selected, preserving diversity and preventing premature convergence.
9. What is the GA cycle? Explain this concept briefly.
Features of Simple GA
The Genetic algorithm cycle represents the complete process of formation of generation to
produce the best offspring that improves the result in every iteration. The Genetic Algorithm
cycle defines the overall process flow in a simple GA.
It starts with the initial population and proceeds through a repetitive cycle involving selection
(reproduction), crossover (recombination), mutation, fitness evaluation, and survivor selection.
The operations involved in GA cycle and its functions are tabulated as follows:
1. Representation:
2. Recombination (Crossover):
3. Mutation:
○ Selection is based on fitness; better solutions are given higher chances of being
selected.
5. Survivor Selection:
○ All children replace parents completely.
6. Specialty:
Thus, after every generation, the offspring completely replace the previous generation based
on their fitness.
START
↓
Initialize a random population
↓
Evaluate fitness of each individual
↓
Repeat until termination condition:
↓
Selection → Crossover → Mutation → Evaluation
↓
Replace parents with offspring
↓
END
The above figure shows that the three main operators (Selection, Crossover, Mutation) are
applied in sequence in every generation cycle, with emphasis mainly on crossover
10. How do we define a fitness function? State the different fitness functions with examples.
11. State some of the applications of GA. Briefly explain about these applications.
Applications of Genetic Algorithms
Genetic Algorithms (GAs) are versatile and have been successfully applied across engineering,
economics, social sciences, and biological modeling. They are particularly powerful for solving
nonlinear, discontinuous, or complex optimization problems.
Key Applications
3. Scheduling
4. Robotics
7. Control Systems
○ Optimize vehicle features such as shape, safety, and fuel efficiency using GAs to
explore complex design parameters.
○ Design of digital circuits that evolve over time to meet performance or area
constraints.
11. Bioinformatics
○ GAs are used to program AI agents that learn from experience, improving their
performance over time.
Summary
GAs provide a flexible, adaptive framework for solving real-world problems where
conventional methods struggle. Their strength lies in their ability to handle large, complex, and
poorly-understood search spaces effectively.