I am going through a past exam paper and I'm trying to understand the following question:
Assume you have N cities. It's possible to go from each city to any of the other cities. Assume that you have full information about the distances between cities in a tabulated form. The distance between the city number k and the city number l is given by d(k,l); so for example, the distance from the third city to the ninth city is given by d(3,9). Note that d(k,l)=d(l,k).
A travelling salesman needs to visit all N cities and wants to find the shortest route that connects all of the cities. Use a genetic algorithm to solve this problem.
Question: Define an appropriate fitness function for this problem and say whether high or low fitness is better.
Does anyone know what I need to do for this question? I'm really struggling with where to start and need some direction.