Solution: SP300 CABLETV - Cable TV Network

The problem involves finding the minimum number of vertices to remove from an undirected graph to make it disconnected. Problem Analysis When a graph becomes disconnected, there exist at least two vertices that cannot reach each other. We can enumerate these two vertices as source and sink, then determine the minimum number of other vertices th ...

Posted on Wed, 08 Jul 2026 17:44:48 +0000 by Horatiu

Algorithmic Problem Solving: Maximum Independent Set, Bomb Chain Reactions, SG Functions, and Tree Queries

A Given a sequence ${a_n}$, select the largest possible subset such that no two selected elements sum to a prime number. Constraints: $T \leq 4$, $n \leq 750$, $a_i \leq 10^9$. Identical values can be merged into counts. Note that at most one instance of 1 may be included. This becomes a bipartite graph problem: odd numbers connect to the sourc ...

Posted on Thu, 14 May 2026 02:12:22 +0000 by supergrame