Nepedia
Back to Discover
Independent Reader
🔢

Hungarian algorithm

math Maturity 11-13 Next article →

Imagine you have three workers. One must clean, one must sweep, and one must wash windows. Each worker wants a different amount of pay for each job. How can you pick the best plan? You want to find the way that costs the least amount of money.

Harold Kuhn found a smart way to solve this. He called it the Hungarian method. He named it after two math experts from Hungary. These experts were Dénes Kőnig and Jenő Egerváry. Later, people found that Carl Gustav Jacobi solved this long ago. He did this in the 1800s.

This method uses a grid of numbers. We call this a matrix. The grid shows the cost for every worker and every job. The math helps us find a perfect matching. A perfect matching means every worker gets one job. It also means every job gets one worker. This method is very fast. It helps us solve big puzzles with many people and many tasks.

161 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

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.