Let $G$ be a connected (simple) graph with $n$ vertices and at least $n$ edges. Prove that it is possible to color the vertices of $G$ red and blue, so that the following conditions hold: i. There is at least one vertex of each color, ii. There is an even number of edges connecting a red vertex to a blue vertex, and iii. If all such edges are deleted, one is left with two connected graphs.
Problem
Source: 2024 Israel TST Test 6 P1
Tags: combinatorics, TST, graph theory, Coloring
20.03.2024 15:57
I think induction kills it.
20.03.2024 20:05
pls post how... i can only induct and show if there is vertex of degree 1 then done otherwise cannot think
21.03.2024 03:12
Let me present two solutions. The first proof is direct; the second proof is inductive.
31.03.2024 23:48
I love this cute problem(actually, all problems from Israel )! In my opinion, two solutions above are quite hard, so I'll post one I found myself(hope it is valid, can someone check it?). We will induct on n. Base case $n=2$ is trivial (no such graph exists, so we are done). Observation 1 If there is a vertex with degree 1, we are done. In this case just delete it, solve the problem for the remaining graph and color the deleted vertex in the original graph the same color as it's neighbour. Observation 2 If we can delete two connected vertices so that graph remains connected, we are done. Call them $A$ and $B$. Because of observation 1, both of them have edges to the remaining graph. If $A$ has an even degree, color it red and all other vertices blue. Same holds for $B$. Now both of them have odd degree, so we can color both of them red and the remaining blue. Observation 3 Such two vertices exist. Consider the spanning tree of our graph. Choose any vertex as a root of the tree. Consider the deepest vertex(or any of them) $A$. It is a leaf, so it is connected only with some vertex $B$. All children of $B$ are also leaves because of maximality. Let's try to delete $A$ and $B$. If it fails, then some children of $B$ are not connected to the remaining graph. But all vertices have degree $\geq 2$, so there is an edge between two children of $B$. Then we can safely delete it, because all children of $B$ are leaves. Done.
01.04.2024 12:16
Above: nice solution. I think in observation 3, you assume the spanning tree is a BFS tree.
13.10.2024 19:41
Here's a bit different solution, using induction. Base case $n=3$, for which we have that the graph is a triangle, so we can make $2$ of the vertices blue and the other red. Case 1: The graph is a cycle. Then we can choose one of the vertices to be red and the others blue. Case 2: The graph isn't a cycle. We will prove that in this case there is a vertex $v$, such that when we remove it (and its edges) from the graph, the graph remains connected and has $\ge n-1$ edges. Showing that would allow us to use induction. Since the graph isn't a cycle $\exists$ vertex $u$ with $deg(u) \ge 3$. Now construct a spanning tree $T$ which contains all edges that contain $u$. Since $deg(u) \ge 3$, the tree has at least $3$ leaves. This means that if edge $e$ is outside of $T$, then at least one of the leaves is not an endpoint of $e$. We can take the desired vertex $v$ to be one of the leaves not in $e$, because if we remove it, the graph will have a spanning tree and an edge outside of it. Case 2.1: $deg(v)$ is even. Then make $v$ red and the other vertices blue. Case 2.2: $deg(v)$ is odd. Now using induction, take a valid coloring of the graph without $v$. WLOG, since $deg(v)$ is odd, let $v$ be connected to an even number of blue vertices. Now we can make $v$ red which adds an even number to the number of edges with different endpoints, so we are done.