IAE Academy

GATE 2020 CS Q.17: solution and answer

GATE 2020 · CSQ.17 · 1 mark · NAT

Let be the set of all binary relations on the set . Suppose a relation is chosen from at random. The probability that the chosen relation is reflexive (round off to 3 decimal places) is ______.

See the question in the paper

Answer and solution

ANSWER

The probability that the chosen relation is reflexive is .

Official answer: 0.125Source: Official answer key, GATE 2020 CS (IIT Delhi)

  1. A binary relation on is a subset of , and .

  2. Each of the 9 ordered pairs is either in the relation or not, so the number of binary relations is . Choosing at random makes each relation equally likely.

  3. A relation is reflexive exactly when it contains , and . These 3 pairs are forced.

  4. The other pairs may each be present or absent, so the number of reflexive relations is .

KEY IDEA

Count relations as subsets of . Reflexivity fixes the diagonal pairs, leaving reflexive relations out of , so the probability is . For this is .

WATCH OUT FOR

Counting only relations, or forgetting that the 6 off-diagonal pairs are free. Another slip is treating the 3 diagonal pairs as optional, which gives the wrong ratio.

From the GATE 2020 CS paper. Every question of this paper · Download the full paper · All 8 Sets & relations questions, with notes

More Sets & relations questions