plastonick / knapsack-solver
There is no license information available for the latest version (1.2.2) of this package.
An OOP wrapper for a knapsack solver
1.2.2
2019-05-14 20:17 UTC
Requires (Dev)
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2026-03-15 12:25:46 UTC
README
A PHP OOP wrapper for solving the knapsack problem.
An example usage is given in example.php
Credit for the algorithm:
https://rosettacode.org/wiki/Knapsack_problem/0-1#PHP
Installation
composer require plastonick/knapsack-solver