CS FundamentalsVery hardGATE CS (PYQ pattern)
Router X has neighbours A, B, C at link costs 2, 5, 1. It receives distance vectors (to D1, D2, D3, D4): from A (4, 9, 3, 7), from B (1, 2, 8, 1), from C (9, 6, 5, 6). After one Bellman-Ford update, what is the sum of X's costs to D1..D4?
- A. 26
- B. 23
- C. 24
- D. 28
Correct answer: C. 24
For each destination take min over neighbours of (link cost + advertised cost): {'D1': (6, 'A'), 'D2': (7, 'B'), 'D3': (5, 'A'), 'D4': (6, 'B')}. Their sum is 24.
More Computer Networks questions
- Routers A and B are connected, and B is directly connected to network C (cost 1 each link; RIP, infinity = 16, no split horizon or poison…
- In link-state routing each router floods its LSA: the originator sends it on every link, and any router receiving it for the first time…
- A weighted undirected graph on nodes 0..5 has edges (u,v,w): (0,1,1), (1,2,2), (0,2,2), (2,3,3), (1,3,3), (3,4,1), (2,4,4), (4,5,2)…
- Routers form a 4 x 4 grid with coordinates (row, column), 0 to 3, and links between horizontal and vertical neighbours of equal cost. Two…
- A leaky bucket holds at most 5 packets and leaks (sends) 1 packet at the end of every tick. In ticks 1 to 8, packets arrive as 3, 4, 0, 5…
- A WFQ scheduler (bit-by-bit round robin approximation) serves three flows backlogged at time 0 with weights A = 2, B = 1, C = 1. Packet…