Skip to content
Official PYQ · 2010

GATE CS 2010 Q28 — Graphs: Connectivity, Matching, Colouring

Explain with AI

The degree sequence of a simple graph is the sequence of the degrees of the nodes in the graph in decreasing order. Which of the following sequences can not be the degree sequence of any graph?

  1. 7,6,5,4,4,3,2,17, 6, 5, 4, 4, 3, 2, 1
  2. 6,6,6,6,3,3,2,26, 6, 6, 6, 3, 3, 2, 2
  3. 7,6,6,4,4,3,2,27, 6, 6, 4, 4, 3, 2, 2
  4. 8,7,7,6,4,2,1,18, 7, 7, 6, 4, 2, 1, 1
Choose one option
View worked solution

Answer: D

For a simple graph with nn vertices, the maximum degree of any vertex is at most n−1n - 1. Let us analyze the given sequences where n=8n = 8:

  • Sequence IV: 8,7,7,6,4,2,1,18, 7, 7, 6, 4, 2, 1, 1
    Here, n=8n = 8, but the maximum degree is 88. Since a vertex in a simple graph of 88 vertices can connect to at most 77 other vertices, a degree of 88 is impossible. Thus, IV is not graphical.
  • Sequence II: 6,6,6,6,3,3,2,26, 6, 6, 6, 3, 3, 2, 2
    We apply the Havel-Hakimi theorem to check if it is graphical:
    1. Remove 66 and subtract 11 from the next 66 elements:
      5,5,5,2,2,1,2  ⟹  5,5,5,2,2,2,15, 5, 5, 2, 2, 1, 2 \implies 5, 5, 5, 2, 2, 2, 1
    2. Remove 55 and subtract 11 from the next 55 elements:
      4,4,1,1,1,14, 4, 1, 1, 1, 1
    3. Remove 44 and subtract 11 from the next 44 elements:
      3,0,0,0,1  ⟹  3,1,0,0,03, 0, 0, 0, 1 \implies 3, 1, 0, 0, 0
    4. Remove 33 and subtract 11 from the next 33 elements:
      0,−1,−1,00, -1, -1, 0
    Since we obtain negative degrees, II is not graphical.

Applying the same theorem to sequences I and III shows they are graphical. Therefore, sequences II and IV cannot be the degree sequence of any simple graph.

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

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