TU Wien:Diskrete Mathematik für Informatik UE (Gittenberger)/Übungen WS13/Beispiel 30
Solution[Bearbeiten | Quelltext bearbeiten]
G bipartite ⇒ Each cycle in G has even length[Bearbeiten | Quelltext bearbeiten]
Let us assume is bipartite and there exists a cycle with odd length. Suppose the first node of this cycle belongs to the set , then the second node belongs to set , the third node to set , and so on. But this means that the last node and the first node belong to set the same set and therefore we know that is not bipartite.
Each cycle in G has even length ⇒ G bipartite[Bearbeiten | Quelltext bearbeiten]
Let us assume each cycle in has even length but is not bipartite. This means that in one of the cycles of there has to be a node and a neighbour of this node which belong to the same set. Suppose the first node of this cycle belongs to set , then the second node belongs to set , the third node belongs to set , the fourth node belongs to set , and so on. Since all cycles have even length we see that every node and its neighbour node belong to a different set. Therefore G has to be bipartite.
Above solution is a bit odd. Here is a better one.