Exercise · ZW-GRAPH-COLORING-003 · ★☆☆ Basic
What is the minimum number of colors needed by the cycle \(C_7\) (7 vertices)?
Choose one option.
A 3 B 2 C 4 D 7
Show answer
← Back to the question
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.
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 What is the minimum number of colors in a proper coloring of the complete graph K_5?ZW-GRAPH-COLORING-002 What is the minimum number of colors needed by a graph that has at least one edge?ZW-GRAPH-COLORING-004 What is the minimum number of colors needed by the cycle C_8?ZW-GRAPH-COLORING-005 The graph has vertices 1,2,3,4 and edges \1,2\,\2,3\,\1,3\,\3,4\. Which is a proper coloring?ZW-GRAPH-COLORING-006 The wheel W_5 is a cycle C_5 plus a central vertex joined to all 5 cycle vertices. How many colors…ZW-GRAPH-COLORING-007 In how many ways can a path on 4 vertices be colored with 3 available colors so that adjacent verti…ZW-GRAPH-COLORING-008 The Petersen graph has 10 vertices, all of degree 3, and contains 5-cycles. What is the minimum num…ZW-GRAPH-COLORING-009 Let Delta be the maximum degree of a graph G. Which statement is true for every graph?