Routing Algorithms

Answer & solution
Official answer: A
Distance-vector routing maintains estimates to destinations and exchanges these with neighbors. Router x updates its distance to y using
Dx(y)=min over neighbors v of [cost(x,v)+Dv(y)].
This is the Bellman–Ford recurrence, applied in a distributed fashion. Thus (i) matches (a).
A link-state router learns the network's connectivity and link costs through link-state advertisements. With this graph available locally, it computes a shortest-path tree rooted at itself, conventionally using Dijkstra's algorithm for nonnegative link costs. Thus (ii) matches (b). The important distinction is neighbor distance estimates versus an advertised topology map, not simply that both seek shortest routes. The two correct matches appear together only in A.