MethodMath
DT
Apr 22, 2026

How to find the chromatic number of a graph and prove it with graph coloring?

I am studying graph theory and I need to understand graph coloring. A proper coloring assigns colors to vertices so that adjacent vertices have different colors. The chromatic number χ(G)\chi(G) is the minimum number of colors needed.

My questions:

  1. How do I find the chromatic number of simple graphs like CnC_n (cycle), KnK_n (complete), and Km,nK_{m,n} (complete bipartite)?
  2. How do I prove that the chromatic number of a planar graph is at most 4 (Four Color Theorem)?
  3. What is Brooks' theorem for upper bounds on χ(G)\chi(G)?
  4. How do I use the greedy coloring algorithm?
  5. What are the applications of graph coloring (scheduling, register allocation)?

For example, find χ(G)\chi(G) for the Petersen graph.

1 answers340 views
Loading comments...

1 Answer

Abdessamad
AbdessamadApr 22, 2026 Accepted
**Chromatic numbers of basic graphs:** - $\chi(K_n) = n$ (all $n$ vertices pairwise adjacent) - $\chi(K_{m,n}) = 2$ (bipartite, so 2-colorable) - $\chi(C_n) = 2$ if $n$ even, $\chi(C_n) = 3$ if $n$ odd **Brooks' Theorem:** For a connected graph $G$ that is not complete or an odd cycle, $$\chi(G) \leq \Delta(G)$$ where $\Delta(G)$ is the maximum degree. **Greedy Coloring Algorithm:** 1. Order vertices $v_1, v_2, \ldots, v_n$. 2. For each vertex in order, assign the smallest color not used by any already-colored neighbor. 3. The greedy algorithm uses at most $\Delta(G) + 1$ colors, but the order matters. **Four Color Theorem:** Every planar graph is 4-colorable. This was the first major theorem proved by computer (Appel and Haken, 1976). Equivalent to: no planar graph requires 5 colors. **Petersen Graph:** $\chi(P) = 3$. It is not bipartite (has odd cycles) but can be colored with 3 colors. It's 3-regular, so by Brooks' theorem $\chi \leq 3$, and $\chi > 2$ since it has odd cycles. **Applications:** - **Exam scheduling:** Courses = vertices, conflicts = edges, colors = time slots - **Register allocation:** Variables = vertices, interference = edges, colors = CPU registers - **Map coloring:** Countries = vertices, borders = edges, colors = colors on map
Loading comments...
Login or Register to post an answer