Question

Let RR be the set of all binary relations on the set {1,2,3}\{1, 2, 3\}. Suppose a relation is chosen from RR at random. The probability that the chosen relation is reflexive (round off to 3 decimal places) is _______.

Official answer and solution
Official answer
0.125
From
Official GATE 2020 answer key

Solution

Compute the ratio of reflexive relations to the total number of binary relations on a 3-element set.

Let A={1,2,3}A = \{1, 2, 3\}, with ∣A∣=3|A| = 3. The Cartesian product A×AA \times A contains ∣A∣2=32=9|A|^2 = 3^2 = 9 ordered pairs.

Total number of binary relations:

  • A binary relation on AA is any subset of A×AA \times A.
  • The total number of relations is ∣R∣=29=512|R| = 2^9 = 512.

Number of reflexive relations:

  • A relation is reflexive if and only if it contains all 3 diagonal pairs: (1,1)(1, 1), (2,2)(2, 2), and (3,3)(3, 3).
  • For each of the remaining 9−3=69 - 3 = 6 non-diagonal pairs, there are 2 choices (include or exclude).
  • Total number of reflexive relations is 26=642^6 = 64.

Probability of choosing a reflexive relation:

P=2629=123=18=0.125P = \frac{2^6}{2^9} = \frac{1}{2^3} = \frac{1}{8} = 0.125

Rounding to 3 decimal places gives 0.125.

Final answer

0.125

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2020 Computer Science and Information Technology (CS)
Question
27 of 65, printed as CS Q.17
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.