Math · Intermediate · Lesson 7 of 7
The Assignment Problem
Who should do which job?
An interactive lesson with 6 steps, about 5 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.
What you’ll learn
- Assign n workers to n jobs to minimise total cost: n! possibilities.
- Greedy choices can fail; the Hungarian method finds the optimum in about n³ steps.
- Adding a constant to a row or column doesn’t change the best assignment.
Steps
- Pairing people with jobs
- Too many to check
- Find the cheapest assignment
- Grab the best first?
- Shifting a row
- Brute force for twenty