Discrete MathematicsPlanarity, Coloring and Matching2 of 4
Planarity, Coloring and Matching · 2

Graph Coloring

When we group items that conflict with one another, like final exams that share students, we want to find the smallest number of conflict-free buckets that can hold them all.

Conflict Graphs and the Chromatic Number
Calculus\text{Calculus}
Computer Science\text{Computer Science}
Physics\text{Physics}
English\text{English}
History\text{History}

In a conflict graph, each dot is an item, each line is a conflict between two items, and each color is a conflict-free bucket (such as a time slot). The minimum number of colors needed to color every dot of a graph GG is its Chromatic Number:

χ(G)⏟chromatic number=fewest colors needed sono two connected dots share a color\displaystyle \begin{aligned} \underbrace{\chi(G)}_{\text{chromatic number}} &= \text{fewest colors needed so} \\ &\quad \text{no two connected dots share a color} \end{aligned}
1

Testing for 2 Colors and Odd Loops

To find χ(G)\chi(G), we start with the simplest question: when are just 2 colors (Red and Blue) enough, and what forces us to reach for a 3rd marker? Testing whether 2 colors work is the same as testing whether the graph is bipartite.

2-Coloring and Odd Loops
Layer 0\text{Layer 0}
AA
Home\text{Home}
Layer 1\text{Layer 1}
BB
CC
Layer 2\text{Layer 2}
EE
DD
FF
Text solution
Force colors outward by distance from HomeStarting with A\markRed{A} colored Red at Layer 0, every dot an odd number of steps away must be Blue and every dot an even number of steps away must be Red.
Layer 0 (0 steps, Red):ALayer 1 (1 step, Blue):B,CLayer 2 (2 steps, Red):D,E,F\displaystyle \begin{aligned} \text{Layer 0 (0 steps, }\markRed{\text{Red}}\text{):} &\quad \markRed{A} \\ \text{Layer 1 (1 step, }\markBlue{\text{Blue}}\text{):} &\quad \markBlue{B, C} \\ \text{Layer 2 (2 steps, }\markRed{\text{Red}}\text{):} &\quad \markRed{D, E, F} \end{aligned}
Check for a line inside the same layerInside Layer 2, F\markRed{F} has lines directly to D\markRed{D} and E\markRed{E}, creating Red-to-Red clashes that trace odd loops back toward AA.
Clash on DF in Layer 2  ⟹  3-loop C–D–F–CClash on EF in Layer 2  ⟹  5-loop A–B–E–F–C–A\displaystyle \begin{aligned} \text{Clash on } \clash{DF} \text{ in Layer 2} &\implies \text{3-loop } C\text{–}D\text{–}F\text{–}C \\ \text{Clash on } \clash{EF} \text{ in Layer 2} &\implies \text{5-loop } A\text{–}B\text{–}E\text{–}F\text{–}C\text{–}A \end{aligned}
Erase CFCF to eliminate the odd loopsWithout line CFCF, dot FF only touches the Layer 2 dots D\markRed{D} and E\markRed{E} (both Red), which moves F\markBlue{F} into Layer 3 where it safely becomes Blue.
Layer 3 (3 steps, Blue):F  ⟹  χ(G)\displaystyle \text{Layer 3 (3 steps, }\markBlue{\text{Blue}}\text{):} \quad \markBlue{F} \implies \chi(G) =2\displaystyle = 2

Across a graph colored in Red and Blue distance layers from Home, a new line causes a color clash if and only if it connects two dots whose step-counts from Home are both even or both odd, which always closes an odd loop.

Connecting two dots of the same color always closes an odd loop, because their step-counts from Home are both even or both odd.
2

Cliques and Lower Bounds

When an odd loop rules out 2 colors, we need a way to tell whether 3 colors are enough or whether the graph's structure forces 4 or more colors.

Cliques and the Wheel Graph
22
33
4?4?

A cluster of dots where every dot connects to every other dot is a clique (and when the whole graph is nn mutually connected dots, we write KnK_n). The size of the largest clique is always a starting lower bound for χ(G)\chi(G), but as the 6-dot wheel graph shows, a graph can require more colors than its largest clique.

Red\text{Red}
Blue\text{Blue}
Green\text{Green}
Yellow\text{Yellow}
Text solution
Check the largest cliqueAny two neighboring dots on the rim together with the center hub form a triangle, while no 4 dots all touch one another.
Largest clique\displaystyle \text{Largest clique} =K3  ⟹  χ(G)\displaystyle = K_3 \implies \chi(G) ≥3\displaystyle \ge 3
Trace what the odd rim forces on the hubBecause the 5-dot outer rim is an odd loop, any valid coloring must use at least 3 different colors around the rim, and the center hub connects to all 5 rim dots.
Rim uses at least 3 colors  ⟹  Hub touches all 3 colors  ⟹  χ(G)≥4\displaystyle \begin{aligned} \text{Rim uses at least } 3 \text{ colors} &\implies \text{Hub touches all } 3 \text{ colors} \\ &\implies \chi(G) \ge 4 \end{aligned}
Color the wheel to match the lower boundColoring the rim Red, Blue, Red, Blue, Green and the center hub Yellow gives a valid 4-coloring, locking in the Chromatic Number.
4\displaystyle 4 ≤χ(G)\displaystyle \le \chi(G) ≤4  ⟹  χ(G)\displaystyle \le 4 \implies \chi(G) =4\displaystyle = 4
3

Greedy Coloring and Troublemakers First

On a larger, messier network where you cannot spot the whole structure at a glance, we need a step-by-step method to build a valid coloring without wasting markers.

Greedy Coloring and Troublemakers First
Red\text{Red}
Blue\text{Blue}
Green\text{Green}
Yellow\text{Yellow}
Calculus (2)\text{Calculus (2)}
CS (3)\text{CS (3)}
Physics (3)\text{Physics (3)}
English (2)\text{English (2)}
History (2)\text{History (2)}
Text solution
Sort the dots from most connections to fewestCounting the conflict lines on each exam puts the biggest troublemakers at the top of the lineup.
Order:Physics (3), CS (3), Calculus (2), English (2), History (2)\displaystyle \text{Order:} \quad \text{Physics } (3),\ \text{CS } (3),\ \text{Calculus } (2),\ \text{English } (2),\ \text{History } (2)
Fill one color slot at a time down the listStarting each new marker at the first uncolored dot, scan down the remaining list and give that same marker to any dot that does not touch a dot already in that slot.
Slot 1 (Red):Physics, EnglishSlot 2 (Blue):CS, HistorySlot 3 (Green):Calculus\displaystyle \begin{aligned} \text{Slot 1 (}\markRed{\text{Red}}\text{):} &\quad \markRed{\text{Physics, English}} \\ \text{Slot 2 (}\markBlue{\text{Blue}}\text{):} &\quad \markBlue{\text{CS, History}} \\ \text{Slot 3 (}\markGreen{\text{Green}}\text{):} &\quad \markGreen{\text{Calculus}} \end{aligned}
Verify with a clique lower boundOur coloring uses 3 slots, and Physics, CS, and Calculus all share students with one another in a triangle (K3K_3).
3\displaystyle 3 ≤χ(G)\displaystyle \le \chi(G) ≤3  ⟹  χ(G)\displaystyle \le 3 \implies \chi(G) =3\displaystyle = 3

When the Greedy rule colors a fixed graph in different visit orders, saving high-degree dots for last lets their neighbors lock in different colors around them, while coloring the highest-degree troublemakers first keeps the marker count down.

Saving a busy dot for last lets its neighbors block the first three colors and force a fourth, while coloring the busy dots first keeps the graph to three colors.

Even in the worst possible visit order, a dot with at most dd neighbors can never have more than dd colors blocked when its turn arrives, and Brooks' Theorem tells us that the extra +1+ 1 marker is almost never needed:

χ(G)≤d⏟max connections+1(and χ(G)≤d for any connected graphexcept an odd loop or Kn)\displaystyle \begin{aligned} &\chi(G) \le \underbrace{d}_{\text{max connections}} + 1 \\ &(\text{and } \chi(G) \le d \text{ for any connected graph} \\ &\quad \text{except an odd loop or } K_n) \end{aligned}
4

Counting Colorings: The Chromatic Polynomial

Instead of asking for the fewest markers needed to color a graph once, we now want to count how many different valid colorings are possible when we have a box of kk markers.

The Chromatic Polynomial
k=10k = 10
AA
BB
CC
Total ways=  ?\text{Total ways} = \;?

When a loop has two dots that don't touch each other, we can break the loop using the Erase-and-Subtract (Deletion-Contraction) rule:

P(k)=Colorings with line erased⏟allows the two ends to match−Colorings with its ends glued⏟counts where the two ends match\displaystyle \begin{aligned} P(k) &= \underbrace{\text{Colorings with line erased}}_{\text{allows the two ends to match}} \\ &\quad - \underbrace{\glued{\text{Colorings with its ends glued}}}_{\text{counts where the two ends match}} \end{aligned}
AA
BB
DD
CC
P(k)P(k)
==
AA
BB
DD
CC
Erased\text{Erased}
−-
AA
BB
DC\htmlClass{lc-violet}{DC}
Glued\htmlClass{lc-violet}{\text{Glued}}
Text solution
Erase line DCDC and count the chainRemoving the bottom line DCDC opens the square into a 4-dot chain D–A–B–CD\text{–}A\text{–}B\text{–}C, where the first dot has kk choices and each of the next 3 dots has k−1k - 1 choices.
Erased\displaystyle \text{Erased} =k(k−1)3\displaystyle = k(k - 1)^3
Glue D\glued{D} and C\glued{C} into one dot and count the trianglePinching D\glued{D} and C\glued{C} together into a single dot DC\glued{DC} counts the illegal colorings where D\glued{D} and C\glued{C} had the same color, forming a triangle with AA and BB.
Glued\displaystyle \glued{\text{Glued}} =k(k−1)(k−2)\displaystyle = \glued{k(k - 1)(k - 2)}
Subtract the glued count from the erased countFactoring out the common k(k−1)k(k - 1) term gives the Chromatic Polynomial P(k)P(k) for the square.
P(k)=k(k−1)3−k(k−1)(k−2)=k(k−1)[(k−1)2−(k−2)]=k(k−1)(k2−3k+3)\displaystyle \begin{aligned} P(k) &= k(k - 1)^3 - \glued{k(k - 1)(k - 2)} \\ &= k(k - 1)\big[(k - 1)^2 - \glued{(k - 2)}\big] \\ &= k(k - 1)(k^2 - 3k + 3) \end{aligned}
Find χ(G)\chi(G) from the first positive value of P(k)P(k)Plugging in whole numbers k=1,2,…k = 1, 2, \dots shows that the number of valid colorings stops being zero at k=2k = 2.
P(1)=0,P(2)=2(1)(1)=2>0  ⟹  χ(G)=2\displaystyle \begin{aligned} P(1) &= \noWays{0}, \\ P(2) &= 2(1)(1) = 2 > 0 \implies \chi(G) = 2 \end{aligned}
5

Coloring Planar Graphs

When a graph is planar, like a flat map where each country is a dot and shared borders are lines that never cross, we want to know the maximum number of colors it could ever require.

Coloring Planar Graphs

While the Four Color Theorem (χ(G)≤4\chi(G) \le 4 for every planar graph) requires checking thousands of cases by computer, we can prove the 6-Color Theorem by hand using induction on the number of dots nn. Remember, Euler's formula (V−E+F=2V - E + F = 2) caps the number of lines in any planar graph at E≤3V−6E \le 3V - 6, which guarantees that every planar graph has at least one dot vv with at most 5 connections.

Text solution
Base case (n≤6n \le 6)Any planar graph with 6 or fewer dots can be colored with 6 markers by giving each dot its own marker.
n\displaystyle n ≤6  ⟹  6 markers are enough\displaystyle \le 6 \implies 6 \text{ markers are enough}
Pluck off a dot with at most 5 connectionsIn any planar graph GG with n+1n + 1 dots, Euler's formula guarantees a dot vv of degree at most 5, and erasing vv leaves a planar graph G−vG - v with nn dots.
degree(v)\displaystyle \text{degree}(v) ≤5,G−v is planar with n dots\displaystyle \le 5, \quad G - v \text{ is planar with } n \text{ dots}
Color the remaining nn dots and put vv backBy the induction hypothesis, G−vG - v can be validly colored with 6 markers, and when vv is placed back on the board, its neighbors can block at most 5 of the 6 colors.
At most 5 colors blocked  ⟹  at least 1 of the 6 markers is free for v\displaystyle \begin{aligned} &\text{At most } 5 \text{ colors blocked} \\ &\implies \text{at least } 1 \text{ of the } 6 \text{ markers is free for } v \end{aligned}

Because every planar graph contains a dot with at most 5 connections, plucking low-degree dots off one by one and coloring them in reverse order guarantees that no dot ever faces more than 5 blocked colors when it returns to the board.

Because every planar graph has a dot with at most 5 connections, removing those dots one by one and coloring them in reverse order guarantees no dot ever faces more than 5 neighbor colors.
6

Coloring the Lines

In a tournament schedule where dots are teams and lines are matches, two matches that share a team cannot happen in the same round, so we need the minimum number of colors to color the lines (Edge Coloring) rather than the dots.

Coloring the Lines
BB
CC
AA
DD
EE

If the busiest dot in a graph has dd lines meeting at it, all dd of those lines touch that dot and must get different colors. Vizing's Theorem tells us that the total number of line colors needed for the entire graph is at most 1 above that lower bound:

Edge colors needed=d⏟max lines at a dot or d+1(always d if G is bipartite)\displaystyle \begin{aligned} &\text{Edge colors needed} = \underbrace{d}_{\text{max lines at a dot}} \text{ or } d + 1 \\ &(\text{always } d \text{ if } G \text{ is bipartite}) \end{aligned}
d=2d = 2
2 colors=d2\ \text{colors} = d
d=2d = 2
3 colors=d+13\ \text{colors} = d + 1

Key concepts

To find and prove the Chromatic Number χ(G)\chi(G), the fewest colors needed so connected dots never match, squeeze it between a lower bound and an explicit coloring:

Test for 2 colors (bipartite) with distance layers

Color a starting dot (Home) Red, and force Layer 1 (1 step) to be Blue, Layer 2 (2 steps) to be Red, and so on. A 2-coloring fails if and only if a line connects two dots inside the same layer, which closes an odd loop and forces χ(G)≥3\chi(G) \ge 3.

Bound from below with cliques and odd-loop hubs

A clique of mm mutually connected dots (KmK_m) immediately forces χ(G)≥m\chi(G) \ge m. Don't stop at the clique size if an odd loop is present: in a 6-dot wheel graph, the largest clique is a triangle (K3K_3), yet the 5-dot odd rim requires 3 colors and the center hub touching all 5 rim dots forces χ(G)=4\chi(G) = 4.

Color from above with Troublemakers First (Welsh-Powell)

Sort dots from highest degree dd to lowest, and fill one color bucket at a time scanning down the list. Even basic Greedy coloring uses at most d+1d + 1 colors, and by Brooks' Theorem, χ(G)≤d\chi(G) \le d for every connected graph except odd loops and complete graphs KnK_n.

To count all valid kk-colorings using the Chromatic Polynomial P(k)P(k):

Multiply directly when neighbors touch each other

On a tree (k(k−1)n−1k(k - 1)^{n-1}) or a triangle (k(k−1)(k−2)k(k - 1)(k - 2)), each dot's already-colored neighbors touch one another and are guaranteed to hold different colors, so you do not need Erase-and-Subtract.

Use Erase-and-Subtract when neighbors don't touch

Across a loop like a 4-dot square, non-adjacent corners can either match or differ in color. Pick a loop line, count the graph with that line erased, and subtract the graph with its two endpoints glued into a single dot: P(k)=Erased−GluedP(k) = \text{Erased} - \glued{\text{Glued}}. The smallest whole number kk where P(k)>0P(k) > 0 is χ(G)\chi(G).

For planar graphs and Edge Coloring (coloring lines):

Planar graphs

Because E≤3V−6E \le 3V - 6, every planar graph has a dot with degree ≤5\le 5; plucking that dot off and coloring it last proves the 6-Color Theorem by induction, while the Four Color Theorem guarantees χ(G)≤4\chi(G) \le 4.

Edge Coloring

When lines meeting at the same dot cannot share a color (like tournament matches sharing a team), Vizing's Theorem guarantees the minimum number of line colors is either dd or d+1d + 1, and always dd when the graph is bipartite.

7

Practice

1

A graph has 6 dots (A,B,C,D,EA, B, C, D, E, and FF) and 7 lines: AB,AC,BD,CE,DE,DFAB, AC, BD, CE, DE, DF, and EFEF. Run the distance-layer test starting from Home at A\markRed{A} (colored Red) to test whether this graph is 2-colorable. Which two dots in the same layer clash, what odd loop back to AA does that clash trace, and which single line can you erase to make the entire graph 2-colorable?

List the dots 1 step from AA (Layer 1, Blue), then their uncolored neighbors 2 steps from AA (Layer 2, Red), and check which of the 7 lines connects two dots inside the same layer.

Layer 0 (Red)A\markRed{A}.
Layer 1 (Blue)AA's neighbors, B\markBlue{B} and C\markBlue{C}.
Layer 2 (Red)The uncolored neighbors of Layer 1 are D\markRed{D} (touching BB) and E\markRed{E} (touching CC).
Same-layer clash and odd loopInside Layer 2, both D\markRed{D} and E\markRed{E} are forced to be Red, and the line DE\clash{DE} connects them directly. Tracing the 2-step paths from AA to DD (A–B–DA\text{–}B\text{–}D) and from AA to EE (A–C–EA\text{–}C\text{–}E) across line DEDE gives the 5-loop A–B–D–E–C–AA\text{–}B\text{–}D\text{–}E\text{–}C\text{–}A (and D–E–F–DD\text{–}E\text{–}F\text{–}D is also a 3-loop using DE\clash{DE}).
Line to eraseWatch out for the slip of erasing DFDF or EFEF. That breaks the triangle D–E–F–DD\text{–}E\text{–}F\text{–}D but leaves the clash on DE\clash{DE} and the 5-loop A–B–D–E–C–AA\text{–}B\text{–}D\text{–}E\text{–}C\text{–}A intact. Erasing the single line DE\clash{DE} breaks both odd loops at once: D\markRed{D} and E\markRed{E} stay Red in Layer 2, and F\markBlue{F} (which touches only DD and EE) moves to Layer 3 as Blue, so the graph is 2-colorable by erasing DE\clash{DE}.
2

Six university committees (A,B,C,D,EA, B, C, D, E, and FF) need meeting time slots. The pairs that share a member are: AA with B,C,D,EB, C, D, E, and FF; BB with A,C,DA, C, D, and EE; CC with A,BA, B, and DD; DD with A,BA, B, and CC; EE with A,BA, B, and FF; and FF with AA and EE. Use the Welsh-Powell (Troublemakers First) method, breaking degree ties alphabetically, to assign the committees to time slots using Red (Slot 1), Blue (Slot 2), Green (Slot 3), and Yellow (Slot 4). Then prove that your number of time slots is the Chromatic Number χ(G)\chi(G) by finding a clique of that size.

Count the conflicts for each committee, sort the list from highest degree to lowest, and as you fill each color slot, scan all the way to the bottom of the remaining list before picking up the next marker.

Sorted degreesA (5), B (4), C (3), D (3), E (3), F (2)A\ (5),\ B\ (4),\ C\ (3),\ D\ (3),\ E\ (3),\ F\ (2).
Color slots
Slot 1 (Red)A\markRed{A} gets Red. Since A\markRed{A} conflicts with every other committee, no other dot can take Red.
Slot 2 (Blue)B\markBlue{B} is first among the remaining dots and gets Blue. Do not stop scanning when C,DC, D, and EE are blocked by B\markBlue{B}: scanning to the bottom, F\markBlue{F} only conflicts with A\markRed{A} and EE, so F\markBlue{F} also gets Blue.
Slot 3 (Green)C\markGreen{C} is first among the remaining dots (C,D,EC, D, E) and gets Green. DD conflicts with C\markGreen{C}, while E\markGreen{E} only conflicts with A\markRed{A}, B\markBlue{B}, and F\markBlue{F}, so E\markGreen{E} also gets Green.
Slot 4 (Yellow)Only DD remains and gets Yellow.
Clique and Chromatic NumberCommittees A,B,CA, B, C, and DD all conflict with one another, forming a 4-clique (K4K_4), so χ(G)≥4\chi(G) \ge 4. Combined with the 4-slot assignment Slot 1={A}\text{Slot 1} = \{\markRed{A}\}, Slot 2={B,F}\text{Slot 2} = \{\markBlue{B, F}\}, Slot 3={C,E}\text{Slot 3} = \{\markGreen{C, E}\}, Slot 4={D}\text{Slot 4} = \{D\}, we have χ(G)=4\chi(G) = 4.
3

A graph GG consists of an outer 5-dot loop (A–B–C–D–E–AA\text{–}B\text{–}C\text{–}D\text{–}E\text{–}A) and two center dots, XX and YY, with no line between XX and YY, where both XX and YY are connected to all 5 dots on the outer loop. What is the size of the largest clique in GG, and what is the Chromatic Number χ(G)\chi(G)? Prove your answer by squeezing χ(G)\chi(G) between a lower bound and an explicit coloring.

Check whether XX and YY touch each other when looking for the largest clique; then color the 5-dot outer rim first and see which colors are blocked for XX and YY.

Largest cliqueWatch out for grouping X,YX, Y, and two rim dots into a 4-clique. Because there is no line between XX and YY, they cannot both belong to the same clique. The largest clique has size 33 (a triangle formed by either XX or YY together with any two adjacent rim dots).
Lower boundThe outer 5-dot rim is an odd loop, so any valid coloring must use at least 3 different colors on the rim. Since XX connects to all 5 rim dots, XX touches all 3 of those colors and must take a 4th color, proving χ(G)≥4\chi(G) \ge 4.
Upper boundDo not assume that having two center hubs forces a 5th color: because XX and YY do not touch each other, both can share the 4th color. Coloring the rim Red, Blue, Red, Blue, Green and coloring both XX and YY Yellow gives a valid 4-coloring, so χ(G)=4\chi(G) = 4.
4

Suppose GG is a connected graph with 8 dots, and the busiest dot in GG has 4 connections (every dot has degree 4 or less). (a) If someone colors GG using the basic Greedy Method in the worst possible dot order, what is the maximum number of colors they could ever be forced to use, and why? (b) Use Brooks' Theorem to prove that the Chromatic Number of GG is at most 4.

For (a), count how many colors a dot's neighbors could possibly block when its turn arrives; for (b), check whether an 8-dot connected graph with maximum degree 4 can be either of the two exceptions in Brooks' Theorem.

(a)When any dot's turn arrives, it has at most 4 neighbors, so those neighbors can block at most 4 different colors. Watch out for answering 4 instead of adding 1 for the dot itself: if all 4 neighbors hold 4 different colors, the dot needs a 5th marker to stay conflict-free, so the maximum number of colors is 4+1=54 + 1 = 5.
(b)By Brooks' Theorem, the only connected graphs of maximum degree dd that require d+1d + 1 colors are odd loops and complete graphs KnK_n. An odd loop has maximum degree 22 (not 44), and a complete graph where every dot has degree 44 has 4+1=54 + 1 = 5 dots (whereas GG is connected and has 88 dots). Because GG is neither an odd loop nor a complete graph, Brooks' Theorem guarantees χ(G)≤4\chi(G) \le 4.
5

A graph has 5 dots (A,B,C,DA, B, C, D, and EE) made of two triangles, A–B–CA\text{–}B\text{–}C and B–C–DB\text{–}C\text{–}D, that share the line BCBC, plus a line from DD to EE (with no other lines). Find the Chromatic Polynomial P(k)P(k) of this graph by counting choices step by step, and compute how many valid ways there are to color it using a box of 10 markers.

Start with the shared line BB and CC so that when you move to AA and DD, their two neighbors are guaranteed to have different colors.

Step-by-step choices
Color BB first: kk choices (1010).
Color CC next (touches BB): k−1k - 1 choices (99).
Color AA (touches both BB and CC, which touch each other and must have different colors): k−2k - 2 choices (88).
Color DD: Watch out for giving DD only k−3\slip{k - 3} choices (7\slip{7}). DD touches BB and CC, not AA, so DD only has to avoid the 2 colors on BB and CC, leaving k−2k - 2 choices (88).
Color EE: Watch out for giving EE k−2\slip{k - 2} choices (8\slip{8}). EE touches only DD, so it only avoids DD's color and has k−1k - 1 choices (99).
Chromatic Polynomial and countMultiplying the choices gives P(k)=k(k−1)2(k−2)2P(k) = k(k - 1)^2(k - 2)^2. With k=10k = 10 markers, there are 10×92×82=51,84010 \times 9^2 \times 8^2 = 51{,}840.
6

The "house graph" has 5 dots: a 4-dot square base (AA top-left, BB top-right, CC bottom-right, DD bottom-left, with lines AB,BC,CDAB, BC, CD, and DADA) and a roof dot EE connected to both AA and BB. Use the Erase-and-Subtract (Deletion-Contraction) method on the bottom line DCDC to find the Chromatic Polynomial P(k)P(k) in factored form, and use P(k)P(k) to find both the Chromatic Number χ(G)\chi(G) and the total number of valid 3-colorings of the house graph.

In both the erased graph and the glued graph, color the roof triangle A–B–EA\text{–}B\text{–}E first (k(k−1)(k−2)k(k - 1)(k - 2) ways), then count the remaining choices for DD and CC (or the glued dot DC\glued{DC}).

Erased graph (line DCDC removed)The roof triangle A–B–EA\text{–}B\text{–}E has k(k−1)(k−2)k(k - 1)(k - 2) ways; then DD hangs only off AA (k−1k - 1 choices) and CC hangs only off BB (k−1k - 1 choices), giving Erased=k(k−1)3(k−2)\text{Erased} = k(k - 1)^3(k - 2).
Glued graph (D\glued{D} and C\glued{C} pinched into DC\glued{DC})After coloring the triangle A–B–EA\text{–}B\text{–}E in k(k−1)(k−2)k(k - 1)(k - 2) ways, watch out for giving the glued dot DC\glued{DC} k−1\slip{k - 1} choices. Because DC\glued{DC} now connects to both AA and BB (which touch each other and hold 2 different colors), DC\glued{DC} has k−2k - 2 choices, giving Glued=k(k−1)(k−2)2\glued{\text{Glued}} = \glued{k(k - 1)(k - 2)^2}.
Subtract and factorWatch the sign when subtracting (k−2)\glued{(k - 2)} so you don't write −2\slip{- 2} instead of +2+ 2:
P(k)=k(k−1)3(k−2)−k(k−1)(k−2)2=k(k−1)(k−2)[(k−1)2−(k−2)]=k(k−1)(k−2)(k2−3k+3)\displaystyle \begin{aligned} P(k) &= k(k - 1)^3(k - 2) - \glued{k(k - 1)(k - 2)^2} \\ &= k(k - 1)(k - 2)\big[(k - 1)^2 - \glued{(k - 2)}\big] \\ &= k(k - 1)(k - 2)(k^2 - 3k + 3) \end{aligned}
Chromatic Number and 3-coloringsPlugging in whole numbers gives P(1)=0P(1) = \noWays{0}, P(2)=0P(2) = \noWays{0}, and P(3)=3(2)(1)(9−9+3)=18P(3) = 3(2)(1)(9 - 9 + 3) = 18. Because k=3k = 3 is the first whole number where P(k)>0P(k) > 0, we have χ(G)=3\chi(G) = 3 and P(3)=18P(3) = 18.
7

In any triangle-free planar graph, Euler's formula guarantees that there is always at least one dot with 3 or fewer connections (degree ≤3\le 3), and erasing any dot leaves a graph that is still a triangle-free planar graph. Following the steps of the 6-Color Theorem proof, write a proof by induction on the number of dots nn that every triangle-free planar graph can be validly colored with at most 4 colors.

State the base case for n≤4n \le 4, assume the claim holds for all nn-dot triangle-free planar graphs, and pluck off a dot vv of degree ≤3\le 3 from an arbitrary (n+1)(n + 1)-dot triangle-free planar graph.

Base case (n≤4n \le 4)Any triangle-free planar graph with 44 or fewer dots can be validly colored with 44 markers by giving each dot its own marker.
Inductive stepFix n≥4n \ge 4 and assume as the induction hypothesis that every triangle-free planar graph with nn dots can be validly colored with 44 colors. Let GG be any triangle-free planar graph with n+1n + 1 dots (watch out for the build-up trap of starting with an nn-dot graph and adding a dot; you must start with an arbitrary (n+1)(n + 1)-dot graph and reduce it). By Euler's formula for triangle-free planar graphs, GG contains at least one dot vv with at most 33 connections. Temporarily erase vv and its attached lines. The remaining graph G−vG - v has nn dots and is still a triangle-free planar graph, so by the induction hypothesis we can validly color all nn dots of G−vG - v using 44 markers. Now put vv and its lines back on the board. Since vv has at most 33 neighbors, those neighbors can block at most 33 of our 44 colors, leaving at least 11 of the 44 markers free for vv. Assigning that free color to vv completes a valid 44-coloring of GG, completing the induction.
8

You are scheduling match rounds (Edge Coloring, where lines meeting at the same team's dot cannot share a round). (a) Five teams play a full tournament where every team plays every other team once (K5K_5, which has 5 dots, 10 match lines, and degree d=4d = 4 at every dot). Vizing's Theorem says this requires either 4 or 5 rounds. By looking at how many matches can take place simultaneously in a single round among 5 teams, explain why 4 rounds is impossible and 5 rounds are required. (b) In a second tournament, 4 teams from Conference A play against 4 teams from Conference B (no two teams in the same conference play each other), and the busiest team plays 3 matches (d=3d = 3). What is the minimum number of rounds required, and why?

For (a), each match in a single round uses 2 distinct teams. How many simultaneous matches can fit among 5 teams? For (b), check whether a graph that only connects Conference A to Conference B can have any odd loops.

(a)In a single round (one color), no two matches can share a team, so each match uses 22 distinct teams. With 55 teams total, at most 22 matches (using 44 teams, with 11 team sitting out) can take place in the same round. Watch out for assuming d=4d = 4 rounds is enough just because each team plays 44 matches: 44 rounds can hold at most 4×2=84 \times 2 = 8 matches, so covering all 1010 matches requires 10÷2=510 \div 2 = 5.
(b)Watch out for leaving the answer as "3 or 4 rounds" from Vizing's general rule: because every match connects a team in Conference A to a team in Conference B, the graph is bipartite (2-colorable dots, with no odd loops). For any bipartite graph, Vizing's +1+ 1 is never needed, so the minimum number of rounds is d=3d = 3.