Skip to content

A question about updating routing tables #2

@hot9cups

Description

@hot9cups

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions