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

A question about updating routing tables #2

Open
hot9cups opened this issue Mar 16, 2021 · 0 comments
Open

A question about updating routing tables #2

hot9cups opened this issue Mar 16, 2021 · 0 comments

Comments

@hot9cups
Copy link

I know this project is 2 years old now, and perhaps no longer maintained but just in case;

In the code for updating the routing tables, this very specific line, why do we assign 16 to interDist if inter[i][j] is equal to source? inter[i][j] == source is true only when i is equal to j, and so route[i][j] would be 0. So interDist + route[source][j] would be equal to 0 + route[source][j]. Why is that a problem? Why do we have to assign 16 to interDist whenever that happens?

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