GATE Computer Science · Digital Logic, Computer Organization, and Discrete Mathematics · easy

Let S be a finite set with |S| = 4 elements. How many reflexive binary relations can be defined on the set S?

Published · Last updated · checked before publication — how we verify questions

Options

  • A64 (equal to 2^6) which counts symmetric irreflexive relations on set S
  • B1,024 (equal to 2^10) which counts symmetric relations on the 4-element set S
  • C4,096 (equal to 2^12) with 4 fixed diagonal pairs and 12 free off-diagonal pairsCorrect answer
  • D65,536 (equal to 2^16) which counts unrestricted binary relations on set S

Answer: C. 4,096 (equal to 2^12) with 4 fixed diagonal pairs and 12 free off-diagonal pairs

A binary relation on S corresponds to a 4x4 Boolean matrix with n^2 = 16 entries. Reflexivity requires all n = 4 diagonal entries (x, x) to be 1, while the remaining n^2 - n = 16 - 4 = 12 off-diagonal entries can each be chosen independently as 0 or 1, yielding 2^(n^2 - n) = 2^12 = 4,096 reflexive relations.

Why the other options are wrong

  • A. 64 (equal to 2^6) which counts symmetric irreflexive relations on set S — 2^6 counts upper-triangle off-diagonal pairs; a general reflexive relation need not be symmetric.
  • B. 1,024 (equal to 2^10) which counts symmetric relations on the 4-element set S — 2^(n(n+1)/2) = 2^10 = 1,024 is the number of symmetric relations, not reflexive relations.
  • D. 65,536 (equal to 2^16) which counts unrestricted binary relations on set S — 2^16 includes relations where one or more diagonal pairs (x, x) are missing.

GATE is a mark of the Indian Institute of Science and the Indian Institutes of Technology. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by the GATE Committee.