MOG Training #7Ended |
Roy and Biv have an undirected graph with $n$ nodes, numbered $1..n$. Each edge of the graph has a weight and a color. Weights are positive integers. There are exactly three colors of edges: Red, Green, and Blue. There may be multiple edges between the same two vertices, and there may even be self-loops in the graph.
For a fixed positive integer $k$, consider the following task: Roy and Biv want to choose exactly $k$ edges of their graph and erase all other edges. They want to do this in such a way that when they look at the graph with just the $k$ edges they have chosen, they will both see that the entire graph is connected.
However, there is a catch: Roy cannot see the color Red and Biv cannot see the color Blue. Therefore,
they have to choose the edges in such a way that the Blue and Green edges are enough to
connect all nodes, and also the Red and Green edges are enough to connect all nodes. What is
the minimum combined weights for all of the edges which will allow both Roy and Biv to see the
graph as connected, for all values of $k$ from $1$ to the total number of edges?