GATE Computer ScienceVery hardGATE CS (PYQ pattern)

How many relations R on {1, 2, 3} have the property that the transitive closure of R is the full relation {1, 2, 3} × {1, 2, 3} (all 9 ordered pairs)?

  1. A. 144
  2. B. 120
  3. C. 168
  4. D. 90

Correct answer: A. 144

R⁺ is the full relation exactly when the digraph of R (loops allowed) is strongly connected. Applying Warshall's closure to each of the 512 relations gives 144.

More Discrete Mathematics questions

Exams that ask this topic