wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider a simple graph with unit edge costs. Each node in the graph represents a router. Each node maintains a routing table indicating the next hop router to be used to relay a packet to its destination and the cost of the path to the destination through that router.
Initially, the routing table is empty. The routing table is synchronously updated as follows. In each updating interval, three tasks are performed.
(i) A node determines whether its neighbors in the graph are accessible. If so, it sets the tentative cost to each accessible neighbor as 1. Otherwise, the cost is set to
(ii) From each accessible neighbor, it gets the costs to relay to other nodes via that neighbor (as the next hop).
(iii) Each node updates it routing table based on the information received in the previous two steps by choosing the minimum cost.

For the graph given above, possible routing tables for various nodes after they have stabilized, are shown in the following options. Identify the correct table.


A
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A
For node A routing table will be:

Bold edges showing the path:

For node B routing table will be:

Bold edges showing the path:

For node C routing table will be:

Bold edges showing the path:

For node D routing table will be:

Bold edges showing the path:

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
The Supply Shifters
ECONOMICS
Watch in App
Join BYJU'S Learning Program
CrossIcon