Nepedia
Back to Discover
Independent Reader
🔢

Assignment problem

math Maturity 11-13 Next article →

Imagine you have three taxis and three customers. Each taxi takes a different amount of time to reach a person. You want to pick the best taxi for each person. Your goal is to keep the total time as low as possible. This is called an assignment problem. It is a way to find the best match between workers and jobs.

Sometimes the groups are not equal. You might have four taxis but only three customers. This is an unbalanced assignment. To solve this, you can add a fake task. This fake task costs zero. It lets you treat the problem like a balanced one.

hungarian algorithm unbalanced assignment problem example
hungarian algorithm unbalanced assignment problem example

Finding the best match can be hard. You could try every single way to match them. But that takes a very long time if there are many people. There is a fast way called the Hungarian algorithm. It helps find the best answer without checking every choice. Other ways to solve it include using math called linear programming. This helps computers find the best plan very quickly.

172 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:hungarian_algorithm_unbalanced_assignment_problem_example.svg
hungarian_algorithm_unbalanced_assignment_...
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.