Skip to content
Official PYQ · 2014

GATE CS 2014 Set 1 Q52 — Graphs: Connectivity, Matching, Colouring

Explain with AI

An ordered n−n-tuple (d1,d2,…,dn)(d_1, d_2,\ldots,d_n) with d1≥d2≥…≥dnd_1 \geq d_2 \geq \ldots \geq d_n is called graphic  if there exists a simple undirected graph with nn vertices having degrees d1,d2,…,dnd_1,d_2,\ldots,d_n respectively. Which one of the following 66-tuples is NOT graphic?

Choose one option
View worked solution

Answer: C

We can determine if a degree sequence is graphic using either basic graph properties or the Havel-Hakimi theorem.

Method 1: Intuitive Analysis

Let's analyze option C: (3,3,3,1,0,0)(3, 3, 3, 1, 0, 0).

  • There are 66 vertices in total.
  • Two vertices have a degree of 00, meaning they are completely isolated and have no edges connected to them.
  • This leaves only 44 active vertices to accommodate the remaining degrees: (3,3,3,1)(3, 3, 3, 1).
  • In a simple graph with 44 vertices, the maximum possible degree of any vertex is 4−1=34 - 1 = 3.
  • If three vertices have a degree of 33, each of them must be connected to all other 33 vertices in this 44-vertex subgraph.
  • If three vertices are connected to every other vertex, then every vertex in this subgraph must have a degree of at least 33.
  • However, the fourth vertex has a degree of only 11, which is a contradiction.

Thus, the sequence (3,3,3,1,0,0)(3, 3, 3, 1, 0, 0) is NOT graphic.

Method 2: Havel-Hakimi Theorem

The Havel-Hakimi algorithm recursively reduces a degree sequence to determine if it is graphic:

  1. Sort the sequence in non-increasing order.
  2. Remove the first element (say, dd) and subtract 11 from the next dd elements.
  3. If any element becomes negative, the sequence is not graphic. If all elements become 00, it is graphic.

Applying this to Option C: (3,3,3,1,0,0)(3, 3, 3, 1, 0, 0)

  • Remove 33, and subtract 11 from the next 33 elements: (3−1,3−1,1−1,0,0)  ⟹  (2,2,0,0,0)(3-1, 3-1, 1-1, 0, 0) \implies (2, 2, 0, 0, 0)
  • Remove 22, and subtract 11 from the next 22 elements: (2−1,0−1,0,0)  ⟹  (1,−1,0,0)(2-1, 0-1, 0, 0) \implies (1, -1, 0, 0)

Since we obtained a negative degree (−1-1), the sequence is not graphic.

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

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