knaptime

Crates.ioknaptime
lib.rsknaptime
version0.0.4
sourcesrc
created_at2023-07-24 03:32:56.547497
updated_at2023-07-24 03:52:40.086224
descriptionSolve the knapsack problem and its variants
homepage
repositoryhttps://github.com/carbocarde/knaptime/
max_upload_size
id924199
size33,063
Patrick O'Neill (Carbocarde)

documentation

https://docs.rs/knaptime/latest/knaptime/

README

Knaptime

This crate aims to solve variants of the knapsack problem.

It was constructed due to the lack of easily-accessible implementations of knapsack variant algorithms online. Language bindings are planned to allow these functions to be used in your language of choice.

Documentation

View all the variants and other docs here (link).

Testing

Ideally we would have a comprehensive test suite, but this is just a side project for me ;).

Currently I just implement the same algorithm twice (using a recursive/naive approach and optimized DP approach). Fuzzing these two approaches tends to reveal most implementation issues.

If you have ideas for how to reliably test rust code in a way that isn't a headache, I'd welcome any proof of concept PRs :)

Contributing

PRs & bugfixes are welcome!

Commit count: 2

cargo fmt