Green = exact question bank answer Amber = clarification only (not for the exam)
1

GA Foundations

Q25, Q20, Q21, Q27
Q25

Explain some basic concepts and terms related to Genetic Algorithm?

πŸ“‹ Question bank answer

Population: This is a subset of all the probable solutions that can solve the given problem.
Chromosomes: A chromosome is one of the solutions in the population.
Gene: This is an element in a chromosome.
Fitness function: This is a function that uses a specific input to produce an improved output.

πŸ’‘ Clarification

Think nesting: Population contains many chromosomes; each chromosome contains many genes. The fitness function scores each chromosome so the GA knows which solutions to keep.

Q20

What is a genotype in Genetic Algorithms?

πŸ“‹ Question bank answer

The genotype is the encoded representation of a solution, typically in the form of a binary string, array, or other structured format. It's the internal format used by genetic operators like crossover and mutation during evolution.

πŸ’‘ Clarification

Genotype = the raw code inside the algorithm (e.g. 10110). Crossover and mutation work on this, not on the real-world solution.

Q21

What is a phenotype in Genetic Algorithms?

πŸ“‹ Question bank answer

The phenotype is the actual solution as interpreted from the genotype. It is the version of the solution evaluated by the fitness function and used in the real-world problem domain.

πŸ’‘ Clarification

Phenotype = what the genotype means in the real problem (e.g. which items to pack, which route to take). The fitness function judges the phenotype.

Q27

How does the fitness function affect a GA's performance?

πŸ“‹ Question bank answer

The fitness function evaluates how good each solution is. A well-designed fitness function guides the algorithm toward better solutions, while a poor one can lead to misleading or suboptimal results.

πŸ’‘ Clarification

If the fitness function rewards the wrong thing, the GA will confidently evolve toward bad answers β€” it's the compass of the whole algorithm.

2

GA Operators & Strategies

Q1, Q26, Q14, Q2, Q3, Q15, Q16, Q24
Q1

Mention two types of crossover in genetic algorithms?

πŸ“‹ Question bank answer

One-point crossover: A single crossover point is chosen, and the segments after that point are swapped between the parents.
Two-point crossover: Two crossover points are selected, and the segment between them is exchanged.

Q26

Compare the Single-Point and Two-Point crossover?

πŸ“‹ Question bank answer

In Single-point Crossover, a location is selected randomly on both the parents. The location is the same in both the parents chromosome. The genes to the right of the crossover point is swapped between the two parents.

In Two-point Crossover, two locations are selected randomly in the parents' chromosome. Then the genes in between the two points are swapped between the two parents.

πŸ’‘ Clarification

Q1 asks what they are; Q26 asks how they differ in detail. One-point = swap right side. Two-point = swap middle only.

Q14

What are the common types of mutation?

πŸ“‹ Question bank answer

Types include bit-flip (for binary), Scramble Mutation, swap (for permutation), and Gaussian mutation (for real-valued). The choice depends on the chromosome representation.

Q2

How does tournament selection work?

πŸ“‹ Question bank answer

It randomly selects a group of individuals and chooses the best among them for reproduction. It's simple and effective for maintaining diversity and avoiding premature convergence.

Q3

When is it better to use mutation over crossover in GA?

πŸ“‹ Question bank answer

When diversity in the population is low or the search is stuck in local optima, mutation helps by introducing new genetic material, whereas crossover relies on existing traits and may not help in exploration.

Q15

What is elitism in Genetic Algorithms?

πŸ“‹ Question bank answer

Elitism ensures the best individuals from the current generation are carried to the next without modification, helping preserve high-quality solutions.

Q16

What is opposition-based learning in the context of mutation?

πŸ“‹ Question bank answer

It's a method where both a candidate solution and its opposite are evaluated. It helps escape local optima by considering alternative search directions.

Q24

What is immigration in Genetic Algorithms and what is its purpose?

πŸ“‹ Question bank answer

Immigration refers to moving individuals between separate sub-populations during evolution. It allows high-quality solutions to spread, increases genetic diversity, and helps avoid premature convergence by introducing new genetic material into each sub-population.

πŸ’‘ Clarification

The bank answer starts with "refers to moving…" β€” include "Immigration" at the beginning when you write your answer.

3

Hill Climbing

Q17, Q22, Q4, Q5, Q6
Q17

What is the Hill Climbing algorithm, and how does it work?

πŸ“‹ Question bank answer

Hill Climbing is a local search optimization algorithm that starts with an initial solution and iteratively moves towards better neighboring solutions. It stops when no improvement can be made. It's simple but can get stuck in local optima.

Q22

What are the main types of Hill Climbing algorithms? Briefly describe each.

πŸ“‹ Question bank answer
  • Simple Hill Climbing: Moves to the first better neighbor found.
  • Steepest-Ascent Hill Climbing: Evaluates all neighbors and chooses the best one.
  • Stochastic Hill Climbing: Randomly selects a better neighbor.
Q4

What is the "Local Maximum" problem in Hill Climbing, and how can it be addressed?

πŸ“‹ Question bank answer

A local maximum occurs when no neighbors improve the solution, but better solutions exist elsewhere. It can be addressed by random restarts or backtracking to explore different regions of the search space.

Q5

Explain the "Plateau" problem in Hill Climbing, and provide a solution.

πŸ“‹ Question bank answer

A plateau is a flat region where neighbors have the same value, making it hard to decide the next move. It can be addressed by larger steps or random restarts to escape the plateau.

Q6

What is the "Ridge" problem in Hill Climbing, and how can it be overcome?

πŸ“‹ Question bank answer

A ridge is a region where the algorithm can't progress due to the slope of the landscape. It can be overcome by larger steps or using simulated annealing to allow some "downhill" moves, helping escape ridges.

4

Simulated Annealing

Q9, Q7
Q9

What is the main inspiration behind the Simulated Annealing (SA) algorithm?

πŸ“‹ Question bank answer

SA is inspired by the metallurgical process of annealing, where a material is heated to a high temperature and then slowly cooled to reduce defects and achieve a more stable, low-energy state. Similarly, SA starts with a high "temperature" to explore the search space broadly and gradually "cools" to refine the solution, helping it escape local optima and converge toward a global optimum.

Q7

Describe the key parameters in SA?

πŸ“‹ Question bank answer

Temperature: Controls the acceptance probability of worse solutions. High temperatures allow more exploration.
Cooling Rate: Determines how quickly the temperature reduces.
Initial Solution: Starting point for the search.

5

GA vs PSO

Q23
Q23

What are the main differences between GA and Particle Swarm Optimization (PSO)?

πŸ“‹ Question bank answer

GA is inspired by genetics and uses selection, crossover, and mutation. PSO is inspired by social behavior and uses velocity and position updates. GAs are more explorative; PSO tends to converge faster.

6

Transfer Learning & CNNs

Q19, Q11, Q12, Q18, Q28, Q30, Q10, Q13, Q29
Q19

What is Transfer Learning?

πŸ“‹ Question bank answer

Transfer learning is a method where a model trained on one task (e.g., ImageNet classification) is reused and adapted for another task. This reduces the need for large datasets and allows faster development of models for new applications.

Q11

What are frozen layers in Transfer Learning?

πŸ“‹ Question bank answer

Frozen layers are layers whose weights are fixed during training. They retain the pre-learned features from the source dataset and help maintain general knowledge, especially in the early convolutional layers.

Q12

What is fine-tuning in deep learning?

πŸ“‹ Question bank answer

Fine-tuning is the process of continuing training a pre-trained model on a new task or dataset. It usually involves unfreezing some layers and updating them to specialize the model without losing its general capabilities.

Q18

What is additive fine-tuning?

πŸ“‹ Question bank answer

Additive fine-tuning involves adding new layers or adapter modules to the pre-trained model while keeping the original weights unchanged. These new components are trained for the target task, preserving the base model's stability.

Q28

What are trainable layers in Transfer Learning?

πŸ“‹ Question bank answer

Trainable layers are updated during fine-tuning. They are typically the last few layers in the network, and they adapt the model to the new task by learning task-specific patterns from the new dataset.

Q30

What is the key characteristic of VGG16 architecture?

πŸ“‹ Question bank answer

VGG16 uses 3x3 convolutional filters, consistent architecture, and depth (16 layers) to learn complex image features. Its simplicity and uniformity make it widely used, despite its large number of parameters (138 million).

Q10

What makes GoogleNet (Inception v1) efficient compared to VGG?

πŸ“‹ Question bank answer

GoogleNet uses Inception modules to process features at multiple scales using 1x1, 3x3, and 5x5 convolutions in parallel. It significantly reduces the number of parameters while maintaining high accuracy on image classification tasks.

Q13

What is an Inception Module?

πŸ“‹ Question bank answer

An Inception module is a network block that applies multiple convolutions (1x1, 3x3, 5x5) and pooling operations in parallel, then concatenates the outputs. This allows the model to learn both local and global features simultaneously.

Q29

Why is 1x1 convolution used before larger filters in Inception modules?

πŸ“‹ Question bank answer

1x1 convolutions are used for dimensionality reduction. They reduce the number of input channels before applying larger filters, making the model more efficient and reducing computational cost.