|
ADS
Algorithms and Data Structures
|
The assignment problem, beyond the book. More...
Files | |
| file | ADS/graph/Assignment.h |
| The assignment problem, beyond the book: given the costs \( c( i , j ) \) of \( n \) rows and \( n \) columns (the workers and the tasks, the left and the right side of a complete bipartite graph), a perfect matching of the rows to the columns of least total cost, a cost infinity() [see ShortestPaths.h] forbidding its pair. | |
Concepts | |
| concept | ADS::AssignmentEngine |
| the engines of the solves of an Assignment, objects that it keeps: solve( n , C , all , D , col , u , v ) gives an optimal assignment of the costs \( C \) by rows, infinity() forbidding a pair, in col (the column of each row) and its potentials in \( u \) and \( v \), every reduced cost \( c( i , j ) - u_i - v_j \) of a finite cost nonnegative and those of the pairs zero; \( D \) holds the pairs whose cost changed since the last solve, or all is true when anything may have. | |
Classes | |
| class | ADS::Assignment< W, P, E > |
| an assignment of least cost of \( n \) rows to \( n \) columns, kept optimal after the changes of the costs, by the code of ADS or, if E is not void, by the engine E More... | |
The assignment problem, beyond the book.
The definitions, the invariants and the costs of the area are in Theory of graphs.