GATE / CS ARCHIVE

GATE CSE 2020 / QUESTION 17

GATE CSE 2020 Q17

Discrete Mathematics · Sets, Relations & Functions · Full GATE CSE 2020 paper

GATE 2020, Q17 1 mark · NAT
Report issue

Sets, Relations & Functions

Question 17, GATE 2020: Choose uniformly from all binary relations on {1,2,3}. What is the probability the relation is reflexive, to three decimal places?
Tap to enlarge
Answer & solution

Official answer: 0.125

Worked explanation

A binary relation is any subset of A×A. With |A|=3 there are nine ordered pairs, not three unordered pairs. Every pair can be included or omitted independently, yielding 512 subsets. Reflexivity requires (1,1),(2,2),(3,3) to be present; the other six bits remain free, yielding 64 favorable relations. The ratio is 64/512=0.125. Equivalently the three required diagonal bits each have probability 1/2, so their conjunction has probability (1/2)³. Symmetry and transitivity are not required.

Derivation and answer

There are 2⁹ binary relations on a three-element set. Reflexivity fixes the three diagonal pairs as present, leaving six arbitrary choices and 2⁶ relations. Under uniform random selection the probability is 2⁶/2⁹=1/8=0.125.

Original paper, page 8 · Answer key