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

Test Case 5_16 in Course 2 Week 1 Issue #62

Open
stephenDiosDev opened this issue Aug 30, 2021 · 0 comments
Open

Test Case 5_16 in Course 2 Week 1 Issue #62

stephenDiosDev opened this issue Aug 30, 2021 · 0 comments

Comments

@stephenDiosDev
Copy link

After writing out the graph by hand, I believe the test case answer for 5_16 in Course 2 Week 1 should be 10,3,1,1,1, not 10,3,1,1,0. Since the inputs only write outgoing edges, and we know 16 total nodes exist in the graph (by the file name, 5_16), we see that nodes 6, 9 and 16 are not mentioned in the input file. Thus, we have our SCC's of 10 and 3, and then nodes 6, 9, and 16 make up the last size 1 SCC's of the output.

Either the file name should be changed to 5_15, which would exclude node 16 and thus provide only 2 size 1 SCC's, or the test case must be corrected. Attached is my drawn diagram of the graph with SCC's circled in red.
IMG_0411

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