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

remove redundant code #12

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

remove redundant code #12

wants to merge 1 commit into from

Conversation

Yay295
Copy link

@Yay295 Yay295 commented Jul 17, 2018

computeInitialFeasibleSolution() just gets the minimum value from each row and puts them in labelByJob. However, computeInitialFeasibleSolution() is only called once, right after calling reduce(), so the minimum value in each row is zero. Since labelByJob is already zero, this does nothing.

Likewise in greedyMatch(), labelByWorker and labelByJob are filled with zero's, so subtracting them does nothing.

`computeInitialFeasibleSolution()` just gets the minimum value from each row and puts them in `labelByJob`. However, `computeInitialFeasibleSolution()` is only called once, right after calling `reduce()`, so the minimum value in each row is zero. Since `labelByJob` is already zero, this does nothing.

Likewise in `greedyMatch()`, `labelByWorker` and `labelByJob` are filled with zero's, so subtracting them does nothing.
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.

1 participant