Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know this question sounds silly, but I've been reviewing distance vector tables from this site

Specifically this example where the direct path is longer than an indirect. Is this possible and if so, what are the conditions for this to occur?

enter image description here

share|improve this question

closed as off topic by Xavierjazz, terdon, Canadian Luke, Nicole Hamilton, Ƭᴇcʜιᴇ007 Mar 5 '13 at 17:45

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Maybe a better question on the programmers or mathematics sites. – Brad Patton Mar 5 '13 at 17:23
1) Speed of the network btw G-F 2) Avg load on interface where G meets F – SparKot Mar 5 '13 at 17:24
Edges are weighted, not necessarily by physical distance. – SparKot Mar 5 '13 at 17:26
I was considering asking this on stackoverflow, but that site suggests code and this site explicitly said networking questions, so I figured this might be best. – krikara Mar 5 '13 at 17:26
@SparKotॐ What exactly do the numbers represent if not physical distance? – krikara Mar 5 '13 at 17:28
up vote 6 down vote accepted

The path is not longer it is more costly. In the example you have posted, the edges are weighted. The table shows the cost of each path. Since the direct edge has a weight of 7, the direct path has a cost of 7. The indirect path has a cost of 4+1=5 so it is less costly even if it is shorter.

I don't know what kind of network you are describing so I cannot know what these weights represent but that is why the cost is cheaper for the indirect path. The weights could, fir example, refer to network speeds. So, if F->D->G takes 5 seconds and F->G takes 7, the indirect path is faster because it goes through a faster network.

share|improve this answer
Ahh okay. It seems kind of confusing how they label them as Distance tables when the edges aren't distances lol. – krikara Mar 5 '13 at 17:32

Not the answer you're looking for? Browse other questions tagged .