Question

Consider the following sets, where n≥2n \ge 2:

S1S_1: Set of all n×nn \times n matrices with entries from the set {a,b,c}\{a, b, c\}

S2S_2: Set of all functions from the set {0,1,2,…,n2−1}\{0, 1, 2, \dots, n^2 - 1\} to the set {0,1,2}\{0, 1, 2\}

Which of the following choice(s) is/are correct?

Choose every correct option
Official answer and solution
Official answer
B and C
From
Official GATE 2021 answer key

Solution

Calculate the cardinality of sets S1S_1 and S2S_2 and use basic principles of functions between finite sets of the same size.

First, evaluate the cardinality of set S1S_1:
An n×nn \times n matrix has n2n^2 entries. Each entry can be chosen from the 3-element set {a,b,c}\{a, b, c\}. Therefore:

∣S1∣=3n2|S_1| = 3^{n^2}

Next, evaluate the cardinality of set S2S_2:
Set S2S_2 consists of all functions from the domain {0,1,2,…,n2−1}\{0, 1, 2, \dots, n^2 - 1\} (which has n2n^2 elements) to the codomain {0,1,2}\{0, 1, 2\} (which has 3 elements). The number of such functions is:

∣S2∣=3n2|S_2| = 3^{n^2}

Because both S1S_1 and S2S_2 are finite sets with exactly the same number of elements (∣S1∣=∣S2∣=3n2|S_1| = |S_2| = 3^{n^2}):

  • There exists a bijection from S1S_1 to S2S_2 (making option C correct, and option A incorrect).
  • Any bijection between two finite sets of identical size is both an injection and a surjection. Therefore, there exists a surjection from S1S_1 to S2S_2 (making option B correct).
  • Since bijections are injective, injections exist between S1S_1 and S2S_2, so option D is incorrect.
Final answer

B, C

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2021 Computer Science and Information Technology - Session 2 (CS2)
Question
21 of 65, printed as CS Q.11
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.