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

What is the minimum number of colors needed by the cycle \(C_7\) (7 vertices)?

Choose one option.

Show answer
  • A. 3

Explanation

An odd cycle cannot be alternated with 2 colors: closing it would repeat a color. 3 suffice: alternate and use the third color on the last vertex.

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-002 ZW-GRAPH-COLORING-004 →