@koodu-platform/hungarian

0.1.0 • Public • Published

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

/@koodu-platform/hungarian/

    Package Sidebar

    Install

    npm i @koodu-platform/hungarian

    Weekly Downloads

    1

    Version

    0.1.0

    License

    ISC

    Unpacked Size

    6.97 kB

    Total Files

    5

    Last publish

    Collaborators

    • koodu-platform