Skip to content

remove redundant code#12

Open
Yay295 wants to merge 1 commit intoKevinStern:masterfrom
Yay295:patch-1
Open

remove redundant code#12
Yay295 wants to merge 1 commit intoKevinStern:masterfrom
Yay295:patch-1

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