Salick Academy

Assignment Models

No calculator

Try each one on paper first, then check a single step. That is worth far more than reading a finished solution.

Example 1 — a full Hungarian algorithm

Assign three workers to three jobs at minimum cost, given the matrix (927643581)\begin{pmatrix} 9&2&7 \\ 6&4&3 \\ 5&8&1 \end{pmatrix}.

Example 2 — converting a maximisation

A profit matrix has entries ranging up to 20. How is the Hungarian algorithm applied?

Example 3 — an unbalanced problem

Five jobs must be shared among four workers, one each. How is this handled?