GateAI
Discrete Mathematics

GATE CSE 2018 · Q18

NAT1 markMedium

Time

The chromatic number of the following graph is ______.

GATE CSE 2018 Q18 diagram

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 3 (±0)

Discrete Mathematics

To determine the chromatic number χ(G)\chi(G) (the minimum number of colors needed to color the vertices such that no two adjacent vertices share the same color):

  1. Lower Bound: The graph contains triangles (cliques of size 3), for example the subgraph induced by vertices {a,b,c}\{a, b, c\}. Hence, at least 3 colors are required:

    χ(G)≥3\chi(G) \ge 3
  2. 3-Coloring Assignment: Let the three colors be 1,2,31, 2, 3:

    • Assign color $1$ to vertex $a$: $c(a) = 1$

    • Assign color $2$ to vertex $b$: $c(b) = 2$

    • Assign color $3$ to vertex $c$: $c(c) = 3$

    • Vertex ee is adjacent to a(1)a (1) and c(3)c (3), so assign c(e)=2c(e) = 2.

    • Vertex dd is adjacent to c(3)c (3) and e(2)e (2), so assign c(d)=1c(d) = 1.

    • Vertex ff is adjacent to b(2)b (2), e(2)e (2), and d(1)d (1), so assign c(f)=3c(f) = 3.

  3. Verification: All adjacent vertex pairs have distinct colors:

    • Edges with color pairs: (a,b):1−2(a, b): 1-2, (a,c):1−3(a, c): 1-3, (a,e):1−2(a, e): 1-2, (b,c):2−3(b, c): 2-3, (b,f):2−3(b, f): 2-3, (c,d):3−1(c, d): 3-1, (c,e):3−2(c, e): 3-2, (d,e):1−2(d, e): 1-2, (d,f):1−3(d, f): 1-3, (e,f):2−3(e, f): 2-3.

Since a valid 3-coloring exists and the graph cannot be colored with 2 colors, the chromatic number is 3.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Discrete Mathematics previous year question is Q18 of the GATE CSE 2018 paper. Find more GATE CSE PYQs on Discrete Mathematics in Engineering Mathematics, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Discrete Mathematics PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Discrete Mathematics in GATE CSE

Discrete Mathematics has 50 GATE CSE PYQs across 23 papers from 2011 to 2026. 10 of them are 1-mark NAT questions like this one, and it is the only one in GATE CSE 2018.

How GATE tests Discrete Mathematics

More from GATE CSE 2018

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2018 · Q18 · NAT

The chromatic number of the following graph is …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.