GateAI
Probability and Statistics

GATE CSE 2013 · Q24

MCQ1 markMedium

Time

Consider an undirected random graph of eight vertices. The probability that there is an edge between a pair of vertices is 1/2. What is the expected number of unordered cycles of length three?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: C) 7

Probability and Statistics

Let G=(V,E)G = (V, E) be a random graph with n=8n = 8 vertices, where each possible edge exists independently with probability p=1/2p = 1/2.

A cycle of length 3 (a triangle) is uniquely defined by choosing a set of 3 vertices out of the 8 vertices.

  1. The total number of triplets of vertices is:

    (n3)=(83)=8×7×63×2×1=56\binom{n}{3} = \binom{8}{3} = \frac{8 \times 7 \times 6}{3 \times 2 \times 1} = 56
  2. For any specific triplet of vertices {u,v,w}\{u, v, w\}, a cycle of length 3 exists if and only if all three edges (u,v)(u,v), (v,w)(v,w), and (w,u)(w,u) are present in the graph. Since each edge exists independently with probability p=1/2p = 1/2:

    P(cycle on {u,v,w})=p3=(12)3=18P(\text{cycle on } \{u, v, w\}) = p^3 = \left(\frac{1}{2}\right)^3 = \frac{1}{8}
  3. By linearity of expectation, the expected number of cycles of length 3 is:

    E[X]=(83)×(12)3=56×18=7E[X] = \binom{8}{3} \times \left(\frac{1}{2}\right)^3 = 56 \times \frac{1}{8} = 7

Hence, the correct option is (C).

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 Probability and Statistics previous year question is Q24 of the GATE CSE 2013 paper. Find more GATE CSE PYQs on Probability and Statistics 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 Probability and Statistics 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.

Probability and Statistics in GATE CSE

Probability and Statistics has 46 GATE CSE PYQs across 23 papers from 2011 to 2026. 9 of them are 1-mark MCQs like this one, and GATE CSE 2013 has 2.

How GATE tests Probability and Statistics

More from GATE CSE 2013

Share this solution

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

GateAI solution cardGATE CSE 2013 · Q24 · MCQ

Consider an undirected random graph of eight vertices. The probability that there is an edge between a pair of vertices is 1/2. What is the expected number of unordered cycles of length three?

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.