Reputation: 1
The title maybe isn't clear, but I'll try to explain better here:
What we want to do is to make the M people go to node N, from node 1, minimizing the number of days.
For example:
In this graph, if we have 3 people to pass, the minimum number of days is 2. We pass 2 people to the node 2 and 1 person to node 3. The 2 people will take 2 days to go to node 3, and 1 person will take 1 day to go to node 3.
My question is: How to solve this? Is it with max-flow? If yes, how to model the problem so that it can be solved with max-flow?
Upvotes: 0
Views: 111
Reputation: 20615
Upvotes: 0