GATE / CS ARCHIVE

GATE CSE 2021 SET 2 / QUESTION 11

GATE CSE 2021 Set 2 Q11

Discrete Mathematics · Sets, Relations & Functions · Full GATE CSE 2021 Set 2 paper

GATE 2021 Set 2, Q11 1 mark · MSQ
Report issue

Sets, Relations & Functions

Question 11, GATE 2021: For n≥2, S1 is all n×n matrices over {a,b,c}; S2 is all functions {0,1,…,n²−1}→{0,1,2}. Select: A no bijection S1→S2; B a surjection exists; C a bijection exists; D no injection exists.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B; C

There are 3n² matrices because each of n² entries has 3 choices. There are also 3n² functions from an n²-element domain to a 3-element codomain. A direct bijection reads matrix entries in a fixed order and maps a, b, c to 0, 1, 2. A bijection is also a surjection and an injection, so B, C.

Explicitly index matrix position (i,j), for zero-based i,j, by i*n+j. Map its symbol a,b,c to the function value 0,1,2. The inverse reconstructs each entry from that value, proving both injectivity and surjectivity without relying only on equal counts. A and D negate properties that this construction supplies.

Original paper, page 61 · Answer key