All mock tests are FREE till 31 December — register to save your progress
Unit 10 · Artificial Intelligence (AI) Paper 2 CS · December 2023

In a genetic algorithm optimization problem, the fitness function is f(x) = x² − 4x + 4. Given a population of four individuals with x values {1.5, 2.0, 3.0, 4.5}, what is the fitness value of the individual that will be selected as the parent for reproduction in one generation?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. 6.25

Explanation

f(x) = (x − 2)² gives 0.25, 0, 1, 6.25. The fittest individual (x = 4.5, fitness 6.25) is selected.

More Artificial Intelligence (AI) questions