Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add knapsack solver script for binary executable; #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timgluz
Copy link

@timgluz timgluz commented May 13, 2020

Hi,

this PR adds an additional solver.py script to call compiled executable and it passes a content of a test file via stdin. This way a solution doesn't have to deal with file opening & closing;

Testing:

  1. copy knapsack.rs from here: https://gist.github.com/timgluz/0a41ee27e37ccbd68c79400197ba4bf6

  2. compile the example solution: rustc knapsack.rs
    nb: here's a tutorial how to install Rust: https://www.rust-lang.org/tools/install

  3. test the script: python solverBash.py ./data/ks_4_0

@codecov-io
Copy link

codecov-io commented May 13, 2020

Codecov Report

Merging #45 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #45   +/-   ##
=======================================
  Coverage   89.51%   89.51%           
=======================================
  Files          17       17           
  Lines        1059     1059           
=======================================
  Hits          948      948           
  Misses        111      111           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9df0ce...a3c37d1. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants