You have the same number of workers and tasks, and each worker would cost a different amount to do each task. Assign one worker to each task — every worker busy, every task covered — so the total cost is as low as possible. Which pairing is best?
That's the assignment problem. It looks like it should be brutal: with n workers there are n! possible pairings, an explosion that dwarfs even the exponential blow-ups elsewhere on this site.
And yet — here's the twist, the same hopeful note as maximum flow — this one is easy. There's a fast, exact method that always finds the cheapest assignment. Sometimes the factorial monster is a paper tiger.
Comments
Loading comments...