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

What is the minimum number of colors needed by the cycle \(C_8\)?

Choose one option.

Show answer
  • C. 2

Explanation

In an even cycle the colors alternate and the pattern closes correctly: 2 colors suffice, and an edge already requires 2.

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-003 ZW-GRAPH-COLORING-005 →