Graph Theory37 sections · 1633 units
Open in Course

Application - Job Assignment

(Workers and tasks)

You have nn workers and mm jobs. Each worker can perform certain jobs based on their skills. Assign each worker to at most one job such that the number of assigned workers is maximum. This is bipartite matching: workers are group LL, jobs are group RR, and edges represent skills.

Run Kuhn's algorithm to get the maximum assignment. If you need all workers assigned, check whether the matching size equals nn.