Skip to content
Official PYQ · 2009

GATE CS 2009 Q2 — Graphs: Connectivity, Matching, Colouring

Explain with AI

What is the chromatic number of an nn vertex simple connected graph which does not contain any odd length cycle? Assume n>2n > 2.

Choose one option
View worked solution

Answer: A

A fundamental theorem in graph theory states that a graph is bipartite if and only if it contains no odd cycles.

By definition, the vertices of a bipartite graph can be partitioned into two disjoint sets, say V1V_1 and V2V_2, such that every edge connects a vertex in V1V_1 to a vertex in V2V_2. Therefore, we can color all vertices in V1V_1 with color 1 and all vertices in V2V_2 with color 2. No two adjacent vertices will share the same color.

Since the graph is connected and has n>2n > 2 vertices, it must contain at least one edge. A graph with at least one edge cannot be colored with 11 color. Thus, the chromatic number is exactly 22.

Hence, the correct option is A.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Graphs: Connectivity, Matching, Colouring questions