Exercise · ZW-GRAPH-COLORING-002 · ★☆☆ Basic

What is the minimum number of colors needed by a graph that has at least one edge?

Choose one option.

Show answer
  • B. 2

Explanation

The two endpoints of an edge must get different colors, so 1 color is not enough; and 2 colors already suffice for, say, a path or a tree.

Study Discrete mathematics in ZWMath →

Review the concept: Graph coloring

A proper coloring \(c\) with \(k\) colors of a graph \(G=(V,E)\) assigns to each vertex one of the colors \(1,\dots,k\) so that no two adjacent vertices share a color.

\[c:V\to\{1,\dots,k\},\qquad c(u)\neq c(v)\ \text{ if } \{u,v\}\in E\]

More practice problems: graph coloring

← ZW-GRAPH-COLORING-001 ZW-GRAPH-COLORING-003 →