Skip to content

Commit

Permalink
Add partial answer to 8.25 and a gitignore.
Browse files Browse the repository at this point in the history
See https://proofwiki.org/wiki/Graph_is_Bipartite_iff_No_Odd_Cycles for more
information.

I also added a gitignore to ignore the pdf and log and other artifacts of
compiling .tex files.
  • Loading branch information
natesholland committed Feb 13, 2016
1 parent 7396231 commit df13cc7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.aux
*.log
*.pdf
*.synctex.gz
40 changes: 39 additions & 1 deletion chapter8.tex
Original file line number Diff line number Diff line change
@@ -1 +1,39 @@
\section{Chapter 8}
\section{Chapter 8}
\begin{enumerate}

% 8.25 %
\item[8.25]
Let $G=(V,E)$ be bipartite.

So, let $V=A \cup B$ such that $A \cap B = \emptyset$ and that all edges $e \in E$
are such that $e$ is of the form $\{a,b\}$ where $a \in A$ and $b \in B$.

(This is the definition of a bipartite graph.)

Suppose $G$ has (at least) one odd cycle $C$.

Let the length of $C$ be $n$.

Let $C=(v_1,v_2,…,v_n,v_1)$.

WLOG, let $v_1 \in A$. It follows that $v_2 \in B$ and hence $v_3 \in A$, and so on.

Hence we see that $\forall k \in \{1,2,…,n\}$, we have:

:$v_k \in \begin{cases}
A : & k \text{ odd} \\
B : & k \text{ even}
\end{cases}$

But as $n$ is odd, $v_n \in A$.

But $v_1 \in A$, and $(v_n,v_1) \in C_n$.

So $(v_n, v_1) \in E$ which contradicts the assumption that $G$ is bipartite.

Hence if $G$ is bipartite, it has no odd cycles.

\textbf{Note}: This only proves one direction of the iff, to complete the proof we will need
to show that having no odd cycles implies that a graph is bipartite.

\end{enumerate}

0 comments on commit df13cc7

Please sign in to comment.