Routing Algorithms


Answer & solution
Answer: C (no official key was published)
With positive link weights, an edge is unusable by any shortest path exactly when another path between its endpoints is strictly shorter. Link R1–R2 has weight 6 but R1–R3–R2 costs 3+2=5, so it is unused. Link R4–R6 has weight 8 but R4–R5–R6 costs 1+4=5, so it is also unused. Every remaining edge is itself a shortest path between its endpoints: R1–R3=3, R2–R3=2, R2–R4=7, R3–R5=9 and R4–R5=1, R5–R6=4. In particular the alternative to R3–R5 through R2,R4 costs 2+7+1=10, greater than 9. Thus exactly two links will never be selected, C. This assumes stabilized shortest-path routing, with data available for any source/destination pair.
To prove that an edge is never needed, replace it in any purported shortest route by the cheaper endpoint-to-endpoint route; the result is a shorter walk and, with positive weights, can be reduced to a path. Conversely, an edge strictly shortest between its own endpoints is needed for that endpoint pair. This avoids enumerating every source–destination routing table.