@koodu-platform/hungarian
v0.1.0
Published
The Hungarian algorithm is an optimization algorithm that finds the optimal assignment of tasks to resources, minimizing the total cost or maximizing the total profit.
Downloads
5
Readme
Hungarian Algorithm
The Hungarian algorithm is an optimization algorithm that finds the optimal assignment of tasks to resources, minimizing the total cost or maximizing the total profit.
Installation
You can install the Hungarian algorithm using npm:
$ npm install hungarian
Usage
const hungarian = require('hungarian');
const costMatrix = [
[1, 2, 3],
[3, 2, 1],
[2, 1, 3]
];
const result = hungarian(costMatrix);
console.log(result);
License
see LICENSE file