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

Issue with Problem 17 in chapter 8 #1

Open
AllenAnZifeng opened this issue Apr 11, 2022 · 0 comments
Open

Issue with Problem 17 in chapter 8 #1

AllenAnZifeng opened this issue Apr 11, 2022 · 0 comments

Comments

@AllenAnZifeng
Copy link

In the provided solution, it is assumed that the last element -- the nth element is guaranteed to be in the chosen subset, which is not necessarily correct. The reason is that only the last node is connected to the first node with a negative weight of W. The correction I am proposing is that every node in the constructed graph should have a direct path with weight negative W pointing back to the first node -- the 0th node.

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

No branches or pull requests

1 participant