# Math 239 Formula Theorems

It seems Gitbook and Typora don't render markdowns exactly the same, so this looks really messed up.

\[Nice PDF here]\(<https://github.com/lauradang/wiki-notes/blob/master/Math/Math%20239%20FormulaTheorems.pdf]\\(https://github.com/lauradang/wiki-notes/blob/master/Math/Math> 239 FormulaTheorems.pdf)).

## Enumeration

| Sets                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | **Cartesian Product**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Unordered: <span class="math">{1, 1, 3} = {1, 3, 1}</span><br>Ordered: <span class="math">{1, 1, 3} \ne {1, 3, 1}</span><br>$$</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | A \cup B                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **Binomial Coefficient Sets**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | **Binomial Theorem**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| $$S\_{k,n}={\Omega \subseteq {1, 2, ..., n}:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | \Omega                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **Bijection**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | **Bijection Theorems**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><span class="math">S\rightarrow T</span><br>1. <span class="math">f(x\_1)=f(x\_2) \Rightarrow x\_1=x\_2</span> - 1-1/injective<br>2. <span class="math">\forall y\in T, \exists x \in S, f(x)=y</span> - onto/surjective</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | <p>Suppose <span class="math">S, T</span> are finite sets and <span class="math">f:S \rightarrow T</span><br>(i) If <span class="math">f</span> is 1-1 $$\Rightarrow</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **Generating Series**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | **Generating Series Theorems**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><span class="math">S</span> is a set with weight function <span class="math">w:S\rightarrow {0, 1, 2, ...}</span><br><span class="math">\Phi\_s(x)=\sum\limits\_{\sigma \in S}x^{w(s)}</span></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | <p><span class="math">\Phi\_s(x)=\sum\limits\_{k\ge 0}a\_kx^k</span><br>$$</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Formal Power Series**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | **FPS Operations**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><span class="math">C(x)=c\_0+c\_1x+c\_2x^2+...+\sum\limits\_{k \ge 0}^\infty c\_kx^k</span><br>where <span class="math">(c\_0, c\_1, ...)</span> are rational numbers.<br><br><span class="math">\[x^n]C(x) = c\_n</span> - Coefficient of <span class="math">x^n</span></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | <p><span class="math">A(x) = \sum\limits\_{k=0}^\infty a\_kx^k</span>, <span class="math">B(x) = \sum\limits\_{k=0}^\infty b\_kx^k</span><br><strong>Addition</strong>: <span class="math">A(x)+B(x)=\sum\limits\_{k=0}^\infty (a\_k+b\_k)x^k</span><br><strong>Equality</strong>: <span class="math">A(x)=B(x) \iff a\_k=b\_k</span><br><strong>Multiplication</strong>: <span class="math">A(x)B(x) = \sum\limits\_{n=0}^\infty (\sum\limits\_{j=0}^n a\_jb\_{n-j})x^n</span></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **Inverse/Composition of FPS** (not all FPS have inverses)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | **Inverse/Recurrence Theorems**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p><span class="math">A(x), B(x)</span> are fps satisfying <span class="math">A(x)B(x)=1</span><br><span class="math">ightarrow \frac{1}{(1-x)^k}=\sum\limits\_{k=0}^\infty x^k</span><br><span class="math">ightarrow \[x^0]A(x)B(x)=1</span> - <strong>Inverse</strong><br><br>Let <span class="math">A(x), B(x)</span> be fps.<br>If <span class="math">b\_0 = 0 \Rightarrow A(B(x)) = \sum\limits\_{j=0}^\infty a\_j(B(x))^j</span> - <strong>Composition</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                        | <p><span class="math">\frac{1}{(1-x)^k}=\sum\limits\_{n=0}^\infty {n+k-1 \choose k-1}x^n</span> - <strong>Negative Binomial Theorem</strong><br><br>Let <span class="math">A(x) = \sum\limits\_{j=0}^\infty a\_jx^j</span>.<br><span class="math">A(x)</span> has inverse <span class="math">\iff</span> <span class="math">\[x^0]A(x)=a\_0\ne 0</span><br><br>Let <span class="math">A(x), C(x)</span> be fps.<br>If <span class="math">\[x^0]A(x) \ne 0 \Rightarrow</span> there exists fps <span class="math">B(x)</span> where <span class="math">A(x)B(x)=C(x)</span><br>Let <span class="math">A(x), C(x)</span> be fps with <span class="math">a\_0 \ne 0</span>. Let <span class="math">B(x) = \frac{C(x)}{A(x)}</span>.<br><span class="math">ightarrow \[x^n]B(X) = b\_n=\frac{1}{a\_0}(c\_n-\sum\limits\_{j=0}^{n-1} a\_{n-j}b\_j)</span><br><br>Let <span class="math">A(x), B(x)</span> be fps s.t. <span class="math">\[x^0]A(x) \ne 0</span> and <span class="math">\[x^0]B(x)=0</span><br><span class="math">ightarrow (A(B(x)))^{-1}=A^{-1}(B(x))</span></p> |
| **Sum and Product Lemmas for Generating Series**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | **Geometric Series**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p>Let <span class="math">S=A \cup B, A \cap B = \varnothing, w:S\rightarrow {0, 1,...}</span><br><span class="math">\Phi\_S(x)=\Phi\_A(x)+\Phi\_B(x)</span> - <strong>Sum lemma</strong><br><br>Let <span class="math">A, B</span> be sets with weight functions:<br><span class="math">\alpha: A\rightarrow {0, 1, ...}</span><br><span class="math">\beta: B \rightarrow {0, 1, ...}</span><br><span class="math">w: A \times B \rightarrow {0, 1, ...}</span>: <span class="math">w((a,b))=\alpha(a)+\beta(b)</span><br><span class="math">ightarrow \Phi\_{A \times B}(x) = \Phi\_A(x) \Phi\_B(x)</span> - <strong>Product Lemma</strong></p>                                                                                                                                                                                                                                                                                | <p><strong>Geometric Series</strong>:<br><span class="math">\sum\limits\_{j=0}^\infty x^j= \frac{1}{1-x}</span> -<br><br><strong>Composition of Geometric Series:</strong><br><span class="math">\[x^0]A(x)=0 \Rightarrow \sum\limits\_{j=0}^\infty (A(x))^j=\frac{1}{1-A(x)}</span></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **Integer Composition**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | **Ambiguous/Unambiguous Binary Strings**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p>A composition of n is a <em>tuple</em> of <strong>positive integers</strong><br><span class="math">(a\_1, a\_2, ..., a\_k)</span> s.t. <span class="math">a\_1+a\_2+...+a\_k=n</span><br><span class="math">k</span> is the number of parts of the composition.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | <p>Let <span class="math">A, B</span> be sets of binary strings.<br><br><span class="math">AB</span> is <strong>ambiguous</strong> if:<br>There exist <span class="math">a\_1, a\_2 \in A</span> and <span class="math">b\_1, b\_2 \in B</span> s.t.<br><span class="math">a\_1b\_1=a\_2b\_2</span><br><br><span class="math">A \cup B</span> is <strong>unambiguous</strong> if <span class="math">A \cap B \ne \varnothing</span><br><br>Expression with several concatenation/union operations is <strong>unambiguous</strong> if 1 of the concatenations or unions is.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Unambiguous/Ambiguous Binary Strings Expressions**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | **Unambiguous Binary String Operations**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p><span class="math">A^k</span> is <strong>ambiguous</strong> if there are distinct k-tuples and the concatenations are equal.<br><br><span class="math">A^*</span> is unambiguous <span class="math">\iff</span><br>1. <span class="math">A^k \cap A^j = \varnothing</span><br>2. <span class="math">A^k</span> is unambiguous for each <span class="math">k \ge 0</span><br><br><strong>Unambiguous Expressions for set of all binary strings</strong>:<br>1. <span class="math">S={0, 1}^*</span><br>2. <span class="math">S={0}^*({1}{0}^*)^*</span><br>3. <span class="math">S={0}^*({1}{1}^*{0}{0}^*)^*{1}^*</span></p>                                                                                                                                                                                                                                                                                                    | <p><strong>Theorem 2.6.1</strong>:<br><span class="math">A, B</span> are sets of unambiguous binary strings.<br>(i) <span class="math">\Phi\_{AB}(x) = \Phi\_A(x)\Phi\_B(x)</span><br>(ii) <span class="math">\Phi\_{A \cup B}(x) = \Phi\_A(x)+\Phi\_B(x)</span><br>(iii) <span class="math">\Phi\_{A\*}(x) = \frac{1}{1-\Phi\_A(x)}</span></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **Partial Fractions Theorems**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | **Homogeneous Linear Recurrences**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><span class="math">f, g</span> are polynomials where <span class="math">deg(f) < deg(g)</span> and<br><span class="math">g(x)=(1-r\_1x)^{e\_1}...(1-r\_kx)^{e\_k}</span><br>where <span class="math">r\_1, ..., r\_k \in \C, e\_1, .., e\_k \in \Z^+</span><br><br><strong>Partial Fractions Theorem:</strong><br><span class="math">ightarrow \frac{f(x)}{g(x)}=\frac{c\_{1,1}}{(1-r\_1x)}+...</span><br><span class="math">+\frac{c\_{1,e\_1}}{(1-r\_1x)^{e\_1}}+\frac{c\_{2,1}}{(1-r\_2x)}+...</span><br><span class="math">+\frac{c\_{2,e\_2}}{(1-r\_x)^{e\_2}}+...+\frac{c\_{k,1}}{(1-r\_kx)}+...+\frac{c\_{k,e\_k}}{(1-r\_kx)^{e\_k}}</span><br><br><strong>Theorem 3.1.4</strong>:<br>There exist polynomials <span class="math">P\_1, ..., P\_k</span> s.t. <span class="math">deg(P\_i)\<e\_i</span><br><span class="math">ightarrow \[x^n]\frac{f(x)}{g(x)}=P\_1(n)r\_1^n+P\_2(n)r\_2^n+...+P\_k(n)r\_k^n</span></p> | <p><strong>Theorem 3.2.1</strong>:<br>Let <span class="math">{c\_n}*{n \ge 0}</span> satisfy the linear recurrence:<br><span class="math">c\_n + q\_1c*{n-1}+...+q\_kc\_{n-k}=0</span><br>Define <span class="math">g(x)=1+q\_1x+...+q\_kx^k</span>, <span class="math">C(x)=\sum\limits\_{n=0}^\infty c\_nx^n</span><br><span class="math">ightarrow</span> There exists polynomial <span class="math">f(x)</span> s.t. <span class="math">deg(f) < k</span><br><span class="math">C(x) = \frac{f(x)}{g(x)}</span></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **Characteristic Polynomial**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p><span class="math">h(x)=q\_k+q\_{k-1}x+...+q\_1x^{k-1}+x^k</span> for recurrence:<br><span class="math">c\_n+q\_1c\_{n-1}+...+q\_kc\_{n-k}=0</span><br><br><strong>Theorem</strong>:<br>Roots: <span class="math">r\_1, r\_2, ..., r\_L \in \C</span><br>Multiplicities: <span class="math">e\_1, e\_2, ..., e\_L \ge 1</span><br><span class="math">ightarrow</span> Then there exists polynomials <span class="math">P\_1, ..., P\_L</span> s.t. <span class="math">deg(f\_j) = e\_j-1</span> and <span class="math">c\_n = P\_1(n)r\_1^n + ... + P\_L(n)r\_L^n</span></p>                                                                                                                                                                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

## Graph Theory

| Handshaking Lemma                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Corollary 4.3.2 (# of odd degrees)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| $$\sum\limits\_{v \in v(G)} deg(v)=2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | E(G)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **Corollary 4.3.3 (Average Vertex Degree)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | **Isomorphic**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Avg vertex degree = $$\frac{2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | E(G)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **Isomorphic Equivalence Relation**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | **Complete Graphs** ($$K\_n$$)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <p>1. A graph is isomorphic to itself (reflexive)<br>2. If <span class="math">G\_1 \cong G\_2 \Rightarrow G\_2 \cong G\_1</span> (symmetric)<br>3. If <span class="math">G\_1 \cong G\_2 </span>and <span class="math">G\_2 \cong G\_3 \Rightarrow G\_1 \cong G\_3</span> (transitive)</p>                                                                                                                                                                                                                                                                                                                                                                          | <p>Every pair of vertices is an edge.<br># of edges = <span class="math">{n \choose 2}</span></p>                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **Regular Graphs** (k-regular)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | **Bipartite Graphs**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <p>Graph where every vertex has degree <span class="math">k</span>.<br># of edges = <span class="math">\frac{nk}{2}</span></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | <p>Graph where there exists partition of vertices <span class="math">(A,B)</span> s.t. each edge<br>of G joins 1 vertex of <span class="math">B</span> with a vertex in <span class="math">A</span>.</p>                                                                                                                                                                                                                                                                                                                 |
| **Complete Bipartite Graphs** ($$K\_{m,n}$$)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | **N-cube**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p>Graph with partition (A,B) where all possible edges joining<br>vertex in A with vertex in B.<br>$$</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **Theorem 4.5.2 (Walk, Path)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | **Corollary 4.6.3 (Path Transitive)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| If there is a $$u,v$$-walk in $$G \Rightarrow$$ there is a $$u,v$$-path in $$G$$.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | If there exists $$u,v$$-path and $$v,w$$-path $$ightarrow$$ there exists $$u,w$$-path.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Theorem 4.6.4 (Cycle, degree)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | **Girth**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| If every vertex in $$G$$ has $$deg \ge 2 \Rightarrow G$$ has a cycle.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | <p>Length of graph's shortest cycle.<br>If <span class="math">G</span> has no cycles <span class="math">ightarrow</span> girth = <span class="math">\infty</span><br><br>- Measure of graph density<br>- High girth = lower average degree (usually)</p>                                                                                                                                                                                                                                                                 |
| **Spanning Cycle**/Hamiltonian Cycle                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | **Connectedness**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Cycle that uses every vertex in the graph                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Connected if there is a $$u,v$$-path for any pair of vertices $$u,v$$.                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Theorem 4.8.2 (Connectedness)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | **Cuts**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <p>Let <span class="math">u \in V(G)</span><br>If <span class="math">u,v</span>-path exists for each <span class="math">v \in V(G) \Rightarrow G</span> is connected.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | <p>Let <span class="math">x \subseteq V(G)</span>.<br><strong>Cut induced by x</strong> in <span class="math">G</span> is the set of all edges in <span class="math">G</span> with exactly 1 end in x.</p>                                                                                                                                                                                                                                                                                                               |
| **Theorem 4.8.5 (Disconnectedness)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | **Eulerian Circuit/Tour**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><span class="math">G</span> is disconnected <span class="math">\iff</span><br>There exists a nonempty proper subset <span class="math">x</span> of <span class="math">V(G)</span><br>s.t. the cut induced by <span class="math">x</span> is <span class="math">\empty</span>.</p>                                                                                                                                                                                                                                                                                                                                                                                | <p><strong>Closed</strong> walk that uses every edge of <span class="math">G</span> exactly once.<br>- Connected unless it has isolated vertices</p>                                                                                                                                                                                                                                                                                                                                                                     |
| **Theorem 4.9.2 (Eulerian Circuit Vertices)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | **Bridge**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p><span class="math">G</span> is connected.<br><span class="math">G</span> has an Eulerian circuit <span class="math">\iff</span> every vertex in <span class="math">G</span> has even degree.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | An edge $$e$$ (or cut-edge) in $$G$$ if $$G-e$$ has more components than $$G$$.                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Lemma 4.10.2 (Bridge Component)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | **Theorem 4.10.3 (Bridge, Cycle)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <p>If <span class="math">e=uv</span> is a bridge in <span class="math">G</span> and <span class="math">H</span> is the component containing <span class="math">e</span><br><span class="math">ightarrow</span> <span class="math">H-e</span> has exactly 2 components<br>(hence <span class="math">G-e</span> has 1 more component than $G$)<br>Moreover, <span class="math">u</span> and <span class="math">v</span> are in different components of <span class="math">H-e</span>.<br>(hence in <span class="math">G-e</span>)</p>                                                                                                                                 | An edge $$e$$ is a bridge of $$G$$ $$\iff$$ $$e$$ is not in any cyce of $$G$$.                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **Tree**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | **Forest**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p>Connected graph with no cycles<br># of edges = <span class="math">n-1</span> by <strong>Theorem 5.1.5</strong><br>- Bipartite by <strong>Lemma 5.1.4</strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | <p>Graph with no cycles.<br># of edges = <span class="math">n-k</span> , with <span class="math">n</span> vertices and <span class="math">k</span> components</p>                                                                                                                                                                                                                                                                                                                                                        |
| **Lemma 5.1.4 (Tree, Bridge)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | **Leaf**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Every edge in a tree/forest is a bridge.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Tree with vertex degree 1.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **Theorem 5.1.8 (Tree Leaves)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | **Lemma 5.1.3 (Unique Path Tree)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Every tree with $$\ge 2$$ vertices has $$\ge 2$$ leaves.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | There is a unique path between any 2 vertices in a tree.                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Theorem 5.2.1 (Connectedness, Spanning tree)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | **Corollary 5.2.2 (Connected, tree)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| $$G$$ is connected $$\iff G$$ has a spanning tree.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | If $$G$$ is connected with $$n$$ vertices and $$n-1$$ edges $$ightarrow G$$ is a tree.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Corollary (Tree-Graph equivalence)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | **Corollary 5.2.3 (Spanning Tree, Cycle)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <p>If any of 2 the following 3 conditions hold <span class="math">ightarrow G</span> is a tree:<br>1. <span class="math">G</span> is connected<br>2. <span class="math">G</span> has no cycles.<br>3. <span class="math">G</span> has <span class="math">n-1</span> edges.</p>                                                                                                                                                                                                                                                                                                                                                                                      | <p>If <span class="math">T</span> is a spanning tree of <span class="math">G</span> and <span class="math">e</span> is an edge in <span class="math">G</span> that is not in <span class="math">T</span><br><span class="math">ightarrow</span> <span class="math">T+e</span> has exactly 1 cycle.<br>Moreover, if <span class="math">e'</span> is an edge in <span class="math">C</span><br><span class="math">ightarrow</span> <span class="math">T+e-e'</span> is a spanning tree of <span class="math">G</span>.</p> |
| **Corollary 5.2.4 (Spanning Tree, Component)**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | **Bipartite Characterization Theorem**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p>If <span class="math">T</span> is a spanning tree of <span class="math">G</span> and <span class="math">e</span> is an edge in <span class="math">T</span><br><span class="math">ightarrow T-e</span> has 2 components (<span class="math">e</span> is a bridge in T).<br>If <span class="math">e'</span> is an edge in the cut induced by the vertices of 1 component<br><span class="math">ightarrow</span> <span class="math">T-e+e'</span> is a spanning tree of <span class="math">G</span>.</p>                                                                                                                                                            | $$G$$ is bipartite $$\iff G$$ has no odd cycles.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Minimum Spanning Tree (MST) Problem**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | **Prim's Algorithm Theorem**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| <p>Given connected graph <span class="math">G</span> and weight function on edges<br><span class="math">w: E(G) \rightarrow </span>, find minimum spanning tree in <span class="math">G</span><br>whose total edge weight in minimized.</p>                                                                                                                                                                                                                                                                                                                                                                                                                         | Prim's algorithm produces a MST.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Complement**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | **Planar**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| If 2 vertices are adjacent in $$G \iff$$The same 2 vertices are not adjacent in $$\bar{G}$$.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | A graph is planar $$\iff$$ Each component is planar                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **Face**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | **Boundary**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| <p>A face of a planar embedding is a connected region on the plane.<br>2 faces are adjacent $\iff$ The faces share <span class="math">\ge</span> 1 edge in their boundaries.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Subgraph of all vertices and edges that touch a face.                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **Boundary Walk**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | **Handshaking Lemma for Faces**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p>Closed walk once around the perimeter of the face boundary.<br>Degree of face = length of boundary walk</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | <p>Let <span class="math">G</span> be a planar graph with planar embedding where <span class="math">F</span> is the set of all faces.<br>$$\sum\limits\_{f \in F} deg(f)=2</p>                                                                                                                                                                                                                                                                                                                                           |
| **Lemma L7-1**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | **Jordan Curve Theorem**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <p>In a planar embedding, an edge <span class="math">e</span> is a bridge<br><span class="math">\iff</span> The 2 sides of <span class="math">e</span> are in the same face</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | <p>Every planar embedding of a cycle separates the plane into<br>2 parts: 1 on the inside, 1 on the outside</p>                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Euler's Formula**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | **Platonic**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| <p>Let <span class="math">G</span> be a connected planar graph.<br>Let <span class="math">n</span> = # of vertices in <span class="math">G</span>.<br>Let <span class="math">m</span> = # of edges in <span class="math">G</span>.<br>Let <span class="math">s</span> = # of faces in a planar embedding of <span class="math">G</span>.<br><span class="math">ightarrow n-m+s=2</span><br><strong>Note</strong>: If <span class="math">G</span> has <span class="math">C</span> components <span class="math">ightarrow</span> <span class="math">n-m+s=1+C</span><br><strong>Result:</strong> All planar embeddings of a graph have the same number of faces.</p> | <p>A connected planar graph is <strong>platonic</strong> if it has a planar embedding<br>where every vertex has same degree (<span class="math">\ge 3</span>) AND<br>every face has same degree (<span class="math">\ge 3</span>)</p>                                                                                                                                                                                                                                                                                    |
| **Lemma 7.5.2**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | **Lemma 7.5.1**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p>Let <span class="math">G</span> be a planar graph with <span class="math">n</span> vertices and <span class="math">m</span> edges.<br>If there is a planar embedding of <span class="math">G</span> where every face has degree <span class="math">\ge 3</span><br><span class="math">ightarrow m \le \frac{d(n-2)}{d-2}</span></p>                                                                                                                                                                                                                                                                                                                              | <p>If <span class="math">G</span> contains a cycle<br><span class="math">ightarrow</span> In any planar embedding of <span class="math">G</span>, every face boundary contains a cycle.</p>                                                                                                                                                                                                                                                                                                                              |
| **Theorem 7.5.3**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | **Corollary 7.5.4**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p>Let <span class="math">G</span> be a planar graph with <span class="math">n \ge 3</span> vertices<br><span class="math">ightarrow m \le 3n-6</span></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | $$K\_5$$ is not planar.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **Theorem 7.5.6**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | **Corollary 7.5.7**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| <p>Let <span class="math">G</span> be a bipartite planar graph with <span class="math">\ge</span> 3 vertices and <span class="math">m</span> edges.<br><span class="math">ightarrow m \le 2n-4</span></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                           | $$K\_{3,3}$$ is not planar.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **Edge Subdivision**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | **Kuratowski's Theorem**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <p>Edge subdivision of <span class="math">G</span> is obtained by replacing each edge of <span class="math">G</span><br>with a new path of length <span class="math">\ge 1</span></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | <p>A graph is planar<br><span class="math">\iff</span> Graph does not have an edge subdivision of <span class="math">K\_5</span> or <span class="math">K\_{3,3}</span> as a subgraph.</p>                                                                                                                                                                                                                                                                                                                                |
| **K-colouring**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | **Theorem 7.7.2**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p>If <span class="math">C</span> is a set of size <span class="math">k</span> ("colours")<br><span class="math">ightarrow f:V(G) \rightarrow C</span> s.t. <span class="math">f(u) \ne f(v) \space \forall uv \in E(G)</span><br><strong>Note</strong>: A k-colouring does not need to use all <span class="math">k</span> colours.</p>                                                                                                                                                                                                                                                                                                                            | $$G$$ is 2-colourable $$\iff$$ $$G$$ is bipartite                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **Theorem 7.7.3**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | **6-Colour Theorem**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| $$K\_n$$ (complete graph) is n-colourable, and not k-colourable for any $$k\<n$$                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Every planar graph is 6-colourable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **Corollary 7.5.4**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | **5-Colour Theorem**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Every planar graph has a vertex of degree $$\le 5$$                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Every planar graph is 5-colourable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **Contraction Result L7-7**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | **4-Colour Theorem**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| If $$G$$ is planar $$ightarrow$$ $$G/e$$ is planar.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Every planar graph is 4-colourable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **Dual Graph Results L7-8**($$G^\*$$)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | **Lemma 8.2.1**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p><strong>Key:</strong> Colouring faces is equivalent to colouring vertices of dual graph.<br>The dual graph is planar.<br>1. If <span class="math">G</span> is connected <span class="math">ightarrow (G^*)^*=G</span><br>2. A vertex in <span class="math">G</span> corresponds to a face in <span class="math">G^*</span> of the same degree.<br>3. A face in <span class="math">G</span> corresponds to a vertex in <span class="math">G^*</span> of the same degree.<br>4. The dual of a platonic graph is platonic.<br>5. If we draw a closed curve on the plane <span class="math">ightarrow</span> the faces are 2-colourable.</p>                         | <p>If <span class="math">M</span> is any matching of <span class="math">G</span> and <span class="math">C</span> is any cover in <span class="math">G</span><br>$$\Rightarrow</p>                                                                                                                                                                                                                                                                                                                                        |
| **Lemma 8.2.2**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | **Konig's Theorem**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| If $$M$$ is a matching of $$G$$ and $$C$$ is a cover of $$G$$ where $$                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | M                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **Augmenting Path Results L8-2**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | **Lemma 8.1.1**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p>Let <span class="math">M</span> be a matching.<br>Let <span class="math">P</span> be an augmenting path.<br>Let <span class="math">M'</span> be a new matching from P.<br><span class="math">ightarrow M'=\[M\cup (E(P)\setminus M)]\space \setminus (E(P)\cap M)</span><br><strong>Notes</strong>:<br>- P is always odd length (L8-2 for proof)<br>- P always starts and ends in different parts of the bipartition.</p>                                                                                                                                                                                                                                        | If a matching $$M$$ has an augmenting path $$ightarrow$$ $$M$$ is not a maximum.                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Bipartite Matching Algorithm**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | **Corollary L8-4**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Minimum cover = $$Y \cup (A \setminus X)$$                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | <p>A bipartite graph <span class="math">G</span> with <span class="math">m</span> edges and maximum degree <span class="math">d</span><br>has a matching of size <span class="math">\ge \frac{m}{d}</span></p>                                                                                                                                                                                                                                                                                                           |
| **Neighbour Set** ($$N\_G(D)$$ or $$N(D)$$)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | **Hall's Theorem**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <p>Let <span class="math">D \subseteq V(G)</span>.<br>Neighbour set of <span class="math">D</span> is set of all vertices adjacent to at least 1 vertex in <span class="math">D</span>.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | <p>A bipartite graph <span class="math">G</span> with bipartition <span class="math">(A,B)</span> has a matching that saturates all vertices in A<br>$$\iff \space \forall \space D \subseteq A,</p>                                                                                                                                                                                                                                                                                                                     |
| **Corollary 8.6.2**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | **Corollary L8-6**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <p>If <span class="math">G</span> is a <span class="math">k</span>-regular bipartite graph with <span class="math">k\ge 1</span><br><span class="math">ightarrow</span> <span class="math">G</span> has a perfect matching.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                     | The edges of a $$k$$-regular bipartite graph can be partitioned into $$k$$ perfect matchings.                                                                                                                                                                                                                                                                                                                                                                                                                            |

!\[]\(/Users/lauradang/Desktop/MATH 239/117236022\_304925684278221\_7724805982347918422\_n.jpg)
