Content deleted Content added
Tag: Reverted |
Apparition11 (talk | contribs) m Reverted 1 edit by NamanZomak123 (talk): Spam |
||
Line 10:
==Examples==
Suppose that a taxi firm has three taxis (the agents) available, and three customers (the tasks) wishing to be picked up as soon as possible. The firm prides itself on speedy pickups, so for each taxi the "cost" of picking up a particular customer will depend on the time taken for the taxi to reach the pickup point. This is a ''balanced assignment'' problem. Its solution is whichever combination of taxis and customers results in the least total cost.
Now, suppose that there are ''four'' taxis available, but still only three customers. This is an ''unbalanced assignment'' problem. One way to solve it is to invent a fourth dummy task, perhaps called "sitting still doing nothing", with a cost of 0 for the taxi assigned to it. This reduces the problem to a balanced assignment problem, which can then be solved in the usual way and still give the best solution to the problem.
|