Skip to content
Official PYQ · 2024

GATE CS 2024 Set 2 Q50 — Graphs: Connectivity, Matching, Colouring

Explain with AI

The chromatic number of a graph is the minimum number of colours used in a proper colouring of the graph. The chromatic number of the following graph is __________.

View worked solution

Answer: 2

To find the chromatic number of the given graph, we can analyze its cycle structure and attempt to color it using the minimum number of colors.

  1. Check for 1-colorability: A graph has a chromatic number of 11 if and only if it has no edges (an empty graph). Since this graph contains edges, its chromatic number must be at least 22.
  2. Check for 2-colorability (Bipartiteness): A graph is 22-colorable if and only if it is bipartite, which is equivalent to saying that the graph contains no cycles of odd length (such as triangles C3C_3, pentagons C5C_5, etc.).
  3. Analyzing the given graph:
    • By inspecting the graph, we observe that all cycles are of even length (e.g., 44-cycles, 88-cycles). There are no odd cycles present.
    • We can successfully perform a 22-coloring of the vertices. If we start by coloring any vertex with Color 1, all of its neighbors must be colored with Color 2, their neighbors with Color 1, and so on. This process completes without any conflicts.

Since the graph is bipartite and contains at least one edge, its chromatic number is exactly 2.

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

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