/* * Based on: Jonker, R., & Volgenant, A. (1987). <i>A shortest augmenting path * algorithm for dense and sparse linear assignment problems</i>. Computing, * 38(4), 325-340. */ #include "git-compat-util.h" #include "linear-assignment.h" #define COST(column, row) … /* * The parameter `cost` is the cost matrix: the cost to assign column j to row * i is `cost[j + column_count * i]. */ void compute_assignment(int column_count, int row_count, int *cost, int *column2row, int *row2column) { … }