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
GATE CSE 2013 · Q24
Time
Select one answerSingle correct
Solution
Official answer: C) 7
Probability and StatisticsLet be a random graph with vertices, where each possible edge exists independently with probability .
A cycle of length 3 (a triangle) is uniquely defined by choosing a set of 3 vertices out of the 8 vertices.
The total number of triplets of vertices is:
For any specific triplet of vertices , a cycle of length 3 exists if and only if all three edges , , and are present in the graph. Since each edge exists independently with probability :
By linearity of expectation, the expected number of cycles of length 3 is:
Hence, the correct option is (C).
Try the question first, then check your work.
Examiner trap
Use linearity of expectation: Expected number of triangles is .
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
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.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
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 StatisticsIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.