Source: wikibot/hungarian-algorithm
= Hungarian algorithm
{wiki=Hungarian_algorithm}
The Hungarian algorithm is a combinatorial optimization algorithm used to solve the assignment problem, which involves finding the optimal way to assign a set of tasks to a set of agents such that the total cost is minimized. The assignment problem can be represented mathematically using a cost matrix, where each element represents the cost of assigning a particular task to a particular agent.