Skip to content
Official PYQ · 2018

GATE CS 2018 Q27 — Sets, Relations and Functions

Explain with AI

Let NN be the set of natural numbers. Consider the following sets,

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

Which of the above sets are countable?

Choose one option
View worked solution

Answer: D

To determine which of the given sets are countable, we analyze each set individually:

  • Set PP (Rational numbers): The set of all rational numbers Q\mathbb{Q} is countably infinite. This is a standard result established by Cantor's diagonal argument. Thus, PP is countable.
  • Set QQ (Functions from {0,1}\{0,1\} to NN): Any function f:{0,1}→Nf: \{0,1\} \to N is uniquely determined by the ordered pair (f(0),f(1))∈N×N(f(0), f(1)) \in N \times N. Since NN is countable, the Cartesian product N×NN \times N is also countable. Thus, QQ is countable.
  • Set RR (Functions from NN to {0,1}\{0, 1\}): The set of functions from NN to {0,1}\{0,1\} is in bijection with the power set of NN, denoted as P(N)\mathcal{P}(N). By Cantor's theorem, ∣P(N)∣=2ℵ0|\mathcal{P}(N)| = 2^{\aleph_0}, which is uncountable. Thus, RR is uncountable.
  • Set SS (Finite subsets of NN): Let SkS_k be the set of all subsets of NN of size kk. Each SkS_k is countable because it can be mapped injectively to NkN^k, which is countable. The set of all finite subsets S=⋃k=0∞SkS = \bigcup_{k=0}^{\infty} S_k is a countable union of countable sets, which is countable.

Therefore, only P,Q,P, Q, and SS are countable sets.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Sets, Relations and Functions questions