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
- In a feed-forward neural network, the input layer has 4 neurons, the hidden layer 3 neurons and the output layer 2 neurons, all using the s…
- Which of the following are commonly used parsing techniques in NLP for syntactic analysis? (A) Top-down parsing (B) Bottom-up parsing (C) D…
- In the context of alpha-beta pruning in game trees, which of the following statements are correct regarding cut-off procedures? (A) Alpha-b…
- Match List I with List IIList I List II (a) Greedy best-first search (I) Space complexity is linear in the depth d of the deepest optimal s…
- Match List I with List II (space complexity)List I List II (a) Hill climbing (I) O(bd) (b) Best first search (II) O(bd) (c) A* search (III)…
- Arrange the following encoding strategies used in Genetic Algorithms (GAs) in the correct sequence, starting from the initial step and endi…