Maximum efficiency problem
The are N cities and there is a wanderer.
The time it takes for him to go from a town to another town is known - Txy (from town x to town y).
From any town he can go to any other town so it is a complete graph.
In each town there is a an amount of money Mx the wanderer wants to collect.
It isn't enough time to pass through all cities.
Having the total available time T and the starting point i, the problem is to find the best route so that the money he collects will be maximum.
Input numbers range:
- N is between 400 and 600
- Mx(M1, M2, ...) are between 100 and 500, x between 1 and N
- Txy are between 80 and 200, x and y are between 1 and N
- Txy is the optimal time distance so that Txy < Txz + Tzy, for any x, y and z between 1 and N.
- T is between 3500 and 5000