Question
Consider an undirected random graph of eight vertices. The probability that there is an edge between a pair of vertices is . What is the expected number of unordered cycles of length three?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2013 answer key
Solution
Use linearity of expectation to sum the probability of forming a 3-cycle over all combinations of 3 vertices.
In an Erdős-Rényi random graph with vertices and independent edge probability :
- An unordered cycle of length 3 (a triangle) is determined by a choice of 3 vertices .
- The total number of triplets of vertices is:
- For any specific triplet of vertices, a cycle of length 3 forms if and only if all 3 edges , , and are present.
- Since edge occurrences are independent with probability :
- By linearity of expectation, the expected number of 3-cycles is:
Thus, the expected number is 7.
Option (C)
Computing directed cycles () or confusing unordered triangles with permutations of vertices.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2013 Computer Science and Information Technology (CS)
- Question
- 24 of 65, printed as CS Q.24
- 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.