Hungarian assignment
Give everyone a different job while keeping the total cost as low as possible. If the numbers stand for how many minutes each person needs for each job, you save total working time.
Workers are on the left and jobs on the right. The number on a line gives the cost of that pairing. Add one worker at a time. Row and column prices help find the cheapest chain of reassignments. An empty result means no full assignment exists.
For L workers and R jobs with L ≤ R, time is O(L²R).