Skip to content
/ aud2 Public

Knapsack and Subset Sum algorithms from my university course "Algorithms and Data Structures 2"

License

Notifications You must be signed in to change notification settings

linuskmr/aud2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aud2

Algorithms taught at my university in the course "Algorithms and Data Structures 2" implemented in Rust.

Supported problems and solving algorithms:

Installation

Install Rust and Cargo

git clone https://github.com/linuskmr/aud2
cargo build --release

Run:

./target/release/aud2

Install as executable

$ cargo install --git https://github.com/linuskmr/aud2

Run from anywhere on your system:

$ aud2 --help

Use as dependency

AuD2 is split into a library and a binary part. The library part can be used from your software. The binary part provides an executable command line program.

[dependencies]
aud2 = { git = "https://github.com/linuskmr/aud2" }

Examples

The examples/ directory provides examples for using the aud2 command line program.

examples/fractional_knapsack.rs shows how to use aud2 for solving knapsack problems.

examples/subset_sum.rs shows how to use aud2 for solving knapsack problems.

You can run the examples via cargo run --example subset_sum or cargo run --example fractional_knapsack respectively.

Documentation

cargo doc --open

Debugging, logging and tracing

Set the environment variable RUST_LOG to trace, debug, info, warn or error to examine the execution.

RUST_LOG=debug aud2 --help

About

Knapsack and Subset Sum algorithms from my university course "Algorithms and Data Structures 2"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages