Question 1: Single choice
mediumAI-checkedGenetic AlgorithmsA genetic algorithm solves a 0/1 knapsack problem with capacity 12. Each chromosome is a bit string whose -th bit says whether item is packed. The fitness is the total value of the packed items if their total weight fits, and 0 otherwise.
| Item | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| Value | 10 | 7 | 4 | 9 | 3 |
| Weight | 5 | 4 | 2 | 6 | 1 |
Which chromosome has the highest fitness?