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)?
- A. 144
- B. 120
- C. 168
- 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
- How many functions f : {1, …, 6} → {1, …, 6} have an image with exactly 3 elements and no fixed point (f(x) ≠ x for all x)?
- How many surjective functions f : {1, …, 6} → {a, b, c} satisfy f(1) = f(2)?
- How many down-sets (order ideals, including the empty set) does the divisor poset (D₁₈₀, |) have? (180 = 2²·3²·5)
- Consider the 3 × 3 grid poset {1,2,3} × {1,2,3} with the product order. How many of its linear extensions list (1,3) before (2,1)?
- How many non-empty sublattices (subsets closed under both join and meet) does the diamond lattice M₃ have?
- In the partition lattice Π₅ of {1, …, 5} ordered by refinement, let 0̂ be the partition into singletons. What is the Möbius function value…