Download the PHP package arthurkushman/hungarian without Composer
On this page you can find all versions of the php package arthurkushman/hungarian. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arthurkushman/hungarian
More information about arthurkushman/hungarian
Files in arthurkushman/hungarian
Package hungarian
Short Description An implementation of the Hungarian algorithm in PHP.
License MIT
Homepage https://github.com/arthurkushman/Hungarian
Informations about the package hungarian
Hungarian
An implementation of the Hungarian algorithm in PHP. The Hungarian algorithm can be used to find the optimal (minimal cost) assignment between two types of entities given a cost matrix. The Hungarian algorithm is also known as the Kuhn–Munkres algorithm or Munkres assignment algorithm.
Installation using Composer
Execute the following command in bash/zsh:
Example usage
Define a square matrix with scores as input for the Hungarian class. A square matrix must be an array consisting of n arrays (rows), with each array consisting of n scores. The key of each element in the row array must be equal to the key of the column.