GATE / CS ARCHIVE

SIMILAR QUESTIONS / DISCRETE MATHEMATICS

Fix diagonal pairs and choose remaining relation pairs

2 questions solved the same way, newest first. Back to Discrete Mathematics

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

1 mark · MCQ
Report issue

Counting reflexive relations

Sets, Relations & Functions

Question 3, GATE 2010: How many reflexive relations exist on a set with five elements?
Options: (A) 2^10; (B) 2^15; (C) 2^20; (D) 2^25.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

A relation on five elements is a subset of 25 ordered pairs. Reflexivity forces the five diagonal pairs to be present. Each of the other 20 pairs can independently be present or absent, giving 2²⁰ relations, C.

Label the elements 1,…,5 and draw a 5×5 Boolean relation matrix. All diagonal entries must be 1; the 20 off-diagonal entries are free binary choices. The answer is not 225 because that counts all relations, including nonreflexive ones. Reflexivity does not impose symmetry, so (i,j) and (j,i) remain independent choices.

Original paper, page 2