Feature #9: Update Configuration
Explore how to simulate configuration propagation in a network grid using BFS. Understand how to represent router states, perform level-by-level updates, and analyze time and space complexities. This lesson prepares you to solve graph traversal problems commonly seen in coding interviews.
We'll cover the following...
Description
We have a network topology in which several network routers are interconnected in a rectangular grid. A router has four neighboring routers: and . A router transmits a configuration update control message to its 4 directionally adjacent neighbors in response to a configuration change. The routers exchange control messages with their adjacent neighbors at one-minute intervals.
A router accepts the configuration change only if it receives a configuration update from its four neighbors, ...