GATE Computer ScienceVery hardGATE CS (PYQ pattern)

The relation R = {(1,2), (2,3), (3,1), (3,4), (5,6), (6,5), (4,5)} is defined on {1, …, 6}. How many ordered pairs does its transitive closure R⁺ contain?

  1. A. 21
  2. B. 24
  3. C. 28
  4. D. 27

Correct answer: B. 24

Elements 1, 2, 3 form a cycle (9 pairs); each reaches 4, 5, 6 (9 pairs); 4 reaches 5, 6 (2 pairs); 5 and 6 form a cycle (4 pairs): 24.

More Discrete Mathematics questions

Exams that ask this topic