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? A. 1/8 B. 1 C. 7 D. 8

GATE 2013 · Engineering Mathematics · Expectation · medium

Answer: C. 7

  1. Count potential triangles: Number of unordered triples of vertices = C(8,3) = 8*7*6 / (3*2*1) = 56. Each triple is a potential triangle.
  2. Probability a specific triple forms a triangle: For vertices u, v, w, we need edges (u,v), (v,w), and (u,w) all to exist. Since edges are independent: P = (1/2)^3 = 1/8.
  3. Apply linearity of expectation: E[number of triangles] = C(8,3) * (1/2)^3 = 56 * (1/8) = 56/8 = 7.