Question

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

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2014 answer key

Solution

Apply the Havel-Hakimi theorem to test whether each degree sequence can be realized as a simple graph.

According to the Havel-Hakimi Theorem, a non-increasing sequence d1,d2,…,dnd_1, d_2, \dots, d_n is graphic if and only if the sequence obtained by deleting d1d_1 and subtracting 1 from each of the next d1d_1 terms is graphic.

Let us test the 6-tuples:

  • Option (A) (1,1,1,1,1,1)(1, 1, 1, 1, 1, 1):
    Three disjoint edges (3K23 K_2). Graphic.

  • Option (B) (2,2,2,2,2,2)(2, 2, 2, 2, 2, 2):
    A 6-cycle (C6C_6). Graphic.

  • Option (C) (3,3,3,1,0,0)(3, 3, 3, 1, 0, 0):
    Remove d1=3d_1 = 3 and subtract 1 from the next 3 terms:

    (3−1,3−1,1−1,0,0)=(2,2,0,0,0)(3 - 1, 3 - 1, 1 - 1, 0, 0) = (2, 2, 0, 0, 0)

    Sort: (2,2,0,0,0)(2, 2, 0, 0, 0).
    Now remove d1=2d_1 = 2 and subtract 1 from the next 2 terms:

    (2−1,0−1,0,0)=(1,−1,0,0)(2 - 1, 0 - 1, 0, 0) = (1, -1, 0, 0)

    This contains a negative degree (−1-1), which is impossible in any graph.
    Therefore, (3,3,3,1,0,0)(3, 3, 3, 1, 0, 0) is NOT graphic.

  • Option (D) (3,2,1,1,1,0)(3, 2, 1, 1, 1, 0):
    Remove 3 and subtract 1 from next 3 terms:

    (2−1,1−1,1−1,1,0)=(1,0,0,1,0)(2 - 1, 1 - 1, 1 - 1, 1, 0) = (1, 0, 0, 1, 0)

    Sort: (1,1,0,0,0)(1, 1, 0, 0, 0).
    Remove 1 and subtract 1 from next term:
    (1−1,0,0,0)=(0,0,0,0)(1 - 1, 0, 0, 0) = (0, 0, 0, 0), which is graphic.
    Thus (D) is graphic.

Hence, (3,3,3,1,0,0)(3, 3, 3, 1, 0, 0) is NOT graphic.

Final answer

C

Common trap

Checking only if the sum of degrees is even (the sum is 10, which is even), without applying the Havel-Hakimi reduction.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 1
Question
62 of 65, printed as CS Q.52
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.