Question

Let N\mathbb{N} be the set of natural numbers. Consider the following sets.

P: Set of Rational numbers (positive and negative)
Q: Set of functions from {0, 1} to N\mathbb{N}
R: Set of functions from N\mathbb{N} to {0, 1}
S: Set of finite subsets of N\mathbb{N}.

Which of the sets above are countable?

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2018 answer key

Solution

Assess the cardinality of each set using standard set theory and countability results.

Evaluate each set:

  • P: Set of rational numbers Q\mathbb{Q}. Q\mathbb{Q} can be placed in one-to-one correspondence with a subset of Z×Z\mathbb{Z} \times \mathbb{Z}, which is countably infinite. Hence, P is countable.
  • Q: Set of functions from {0,1}\{0, 1\} to N\mathbb{N}. A function f:{0,1}→Nf: \{0, 1\} \to \mathbb{N} is uniquely defined by (f(0),f(1))∈N×N(f(0), f(1)) \in \mathbb{N} \times \mathbb{N}. Since the Cartesian product of two countable sets is countable, Q is countable.
  • R: Set of functions from N\mathbb{N} to {0,1}\{0, 1\}. This is the set of all infinite binary sequences, which has cardinality 2ℵ0=c2^{\aleph_0} = \mathfrak{c} (uncountable by Cantor's diagonal argument). Hence, R is uncountable.
  • S: Set of finite subsets of N\mathbb{N}. The collection of finite subsets is ⋃k=0∞{A⊂N∣∣A∣=k}\bigcup_{k=0}^{\infty} \{A \subset \mathbb{N} \mid |A| = k\}, a countable union of countable sets, which is countable. Hence, S is countable.

Sets P, Q, and S are countable, matching option D.

Final answer

D

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

Source

Paper
GATE 2018 Computer Science and Information Technology (CS)
Question
37 of 65, printed as CS Q.27
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.