5. Colorings
Greedy: can find
planar (all in plane without edge overlap): by the Four Color Theorem. By Heuristic: possible
2-colorable: linear time
even cycles are 2-colorable odd cycles are 3-colorable
a graph is bipartite no subgraph is cycle of uneven length
a block graph, where each block can be colored with at most colors, can be colored with colors
Brooks’ Theorem
Theorem
For any connected graph that is neither a complete graph nor an odd cycle (the entire graph), the chromatic number satisfies
where is the maximum degree of
Greedy Algorithm
- Chose an arbitrary edge order
- Assign color 1 to
Heuristic
- Order nodes with ascending degree
3-Colorable Algorithm
A 3-colorable graph can always be colored in with .