Hi, this is my approach to the problem:
- Apply Dijkstra for each of the possible subsets of people into a car.
- Then i have to find disjoint-subsets (which represent people in the cars) whose union has all the people and their sum of costs (obtained by Dijkstra) is minimal.
For the second part i don't find a good algorithm to solve it, can ayone describe a good method? or a different approach to solve this problem, which seems very interesting to me, thanks.
11288 - Carpool
Moderator: Board moderators