As a resistance leader, you have obtained a schematic map of the dictatorship's communication cables. Because the government wants to control every piece of news, the signal is one-way only , flowing from the capital out to the military. To launch your attack, you must completely cut all connection between the Capital (s) and the Military Base (t) . Each one-way cable is guarded. The cost to destroy a cable (in C4 charges and personnel) is equal to its capacity. You have a total budget of B = 10 . s a b t 10 8 2 3 ...
In a directed graph \(G = (V, E)\), we explore the relationship between path reachability and Strongly Connected Components (SCCs) . To analyze this, we define two functions: \(f(u, v) \in \{True, False\}\): Returns True if there exists at least one directed path from \(u\) to \(v\). \(scc\_id(u) \in \mathbb{Z}\): Returns a unique ID for the SCC containing node \(u\). In the following example, we can observe that two nodes \(u\) and \(v\) are in the same SCC if and only if \(scc\_id(u) = scc\_id(v)\). scc_id = 1 scc_id = 2 scc_id = 3 1 2 3 ...