Question

A cycle on nn vertices is isomorphic to its complement. The value of nn is _____.

Official answer and solution
Official answer
5
From
Official GATE 2014 answer key

Solution

Equate the edge count of cycle graph Cn with its complement graph to find the number of vertices n.

  1. Properties of Graph and its Complement:

    • A cycle graph CnC_n on nn vertices has exactly nn edges (for n≥3n \ge 3).
    • The complete graph KnK_n has n(n−1)2\frac{n(n - 1)}{2} edges.
    • The complement graph Cn‾\overline{C_n} has:
      ∣E(Cn‾)∣=n(n−1)2−n.|E(\overline{C_n})| = \frac{n(n - 1)}{2} - n.
  2. Isomorphism Condition:

    • Isomorphic graphs must have identical numbers of edges:
      n=n(n−1)2−n.n = \frac{n(n - 1)}{2} - n.
      2n=n(n−1)2.2n = \frac{n(n - 1)}{2}.
    • Since n≥3n \ge 3, divide both sides by nn:
      2=n−12  ⟹  n−1=4  ⟹  n=5.2 = \frac{n - 1}{2} \implies n - 1 = 4 \implies n = 5.
  3. Verification:
    For n=5n = 5, C5C_5 has 5 edges and C5‾\overline{C_5} has 5×42−5=5\frac{5 \times 4}{2} - 5 = 5 edges. The complement of a pentagon is a pentagram, which is also a 5-cycle. Hence C5≅C5‾C_5 \cong \overline{C_5}.

Final answer

5

Common trap

Forgetting that a cycle requires n >= 3, or attempting to solve without edge count conservation.

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 2
Question
61 of 65, printed as CS Q.51
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.