Related Articles

# GATE | GATE-CS-2009 | Question 2

• Difficulty Level : Medium
• Last Updated : 14 Feb, 2018

What is the chromatic number of an n-vertex simple connected graph which does not contain any odd length cycle? Assume n >= 2.
(A) 2
(B) 3
(C) n-1
(D) n

Explanation: The chromatic number of a graph is the smallest number of colours needed to colour the vertices of so that no two adjacent vertices share the same colour. These types of questions can be solved by substitution with different values of n.

1) n = 2 This simple graph can be coloured with 2 colours.

Here, in this graph let us suppose vertex A is coloured with C1 and vertices B, C can be coloured with colour C2 => chromatic number is 2 In the same way, you can check with other values, Chromatic number is equals to 2

This solution contributed by Anil Saikrishna Devarasetty

//A simple graph with no odd cycles is bipartite graph and a Bipartite graph can be colored using 2 colors (See this)

Quiz of this Question

Attention reader! Don’t stop learning now.  Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.

Learn all GATE CS concepts with Free Live Classes on our youtube channel.

My Personal Notes arrow_drop_up